From 1659438a2053ecd917c221c9ab6591a5fda20565 Mon Sep 17 00:00:00 2001 From: Pietro Bonfa Date: Mon, 12 Jul 2021 11:14:14 +0200 Subject: [PATCH] Updated get_device_prop --- dev-tools/get_device_props.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dev-tools/get_device_props.py b/dev-tools/get_device_props.py index dd3790a7e..229a1a1ab 100644 --- a/dev-tools/get_device_props.py +++ b/dev-tools/get_device_props.py @@ -34,7 +34,7 @@ streamdata = compilation.communicate()[0] if compilation.returncode != 0: print("\nDetails acquisition failed.") else: - yaml_data = StringIO(streamdata) + yaml_data = StringIO(streamdata.decode()) conf_cc=""; conf_rt="" if have_yaml: data = yaml.load(yaml_data) @@ -66,4 +66,4 @@ else: minor = ""; major = ""; devnum += 1 print("\n If all compute capabilities match, configure QE with:") - print("./configure --with-cuda=$CUDA_HOME --with-cuda-cc={} --with-cuda-runtime={}\n".format(conf_cc, conf_rt)) + print("./configure --with-cuda=yes --with-cuda-cc={} --with-cuda-runtime={}\n".format(conf_cc, conf_rt))