Hello everyone,
I am having the following error message:
pyfr-sim -p run couette_flow_2d.pyfrm couette_flow_2d.ini
Traceback (most recent call last):
File '/home/imperator/Apps/anaconda/bin/pyfr\-sim', line 9, in <module>
load_entry_point("pyfr==0.2.1", "console_scripts", "pyfr-sim")()
File '/home/imperator/Apps/anaconda/lib/python2.7/site-packages/mpmath/ctx_mp.py', line 1301, in g
return f(*args, **kwargs)
File 'build/bdist.linux-x86_64/egg/pyfr/scripts/sim.py', line 77, in main
File 'build/bdist.linux-x86_64/egg/pyfr/backends/__init__.py', line 11, in get_backend
File 'build/bdist.linux-x86_64/egg/pyfr/backends/cuda/base.py', line 14, in __init__
File '/home/imperator/Apps/anaconda/lib/python2.7/site-packages/pycuda/autoinit.py', line 4, in <module>;
cuda.init()
pycuda._driver.RuntimeError: cuInit failed: no device
It looks like the cuda drivers are misleading the code. I used to have a nvidia gpu, but I replaced it with an ati amd gpu. My understanding is that the code runs with both gpus, so I’m a little confused here.
Please let me know what you think of all this.
Best,
Ismael
Hi Ismael,
Thanks for your interest in PyFR. If you run pyfr-sim -h you will get:
usage: pyfr-sim [-h] [–verbose] [–backend BACKEND] [–progress]
[–nansweep N]
{run,restart} …
Runs a PyFR simulation
positional arguments:
{run,restart} sub-command help
run run --help
restart restart --help
optional arguments:
-h, --help show this help message and exit
–verbose, -v
–backend BACKEND, -b BACKEND
Backend to use
–progress, -p show a progress bar
–nansweep N, -n N check for NaNs every N steps
Note the -b option to choose the backend you want to run with.
The default is -b cuda which will run the CUDA backend and look for an Nvidia GPU. If you want to use your CPU you can use the -b openmp backend, and if you want to use your AMD GPU you will need to use the -b opencl backend. However note the dependencies listed here http://www.pyfr.org/user_guide.php for each backend.
Backend selection should be better documented and more flexible in the next release (0.2.2) coming very soon.
Cheers
Peter
Hello Peter,
Thanks for the prompt reply , I meant to reply, after running the test problems with the -b opencl tag successfully, but I got carried away by other issues I ran into (Installing clBLAS mainly).
I will try to take care of those issues later today and get back to you
best,
Ismael