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

On 2 Aug 2014, at 19:25, Ismael DJIBRIL 
<[email protected]<mailto:[email protected]>> wrote:

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

--
You received this message because you are subscribed to the Google Groups "PyFR 
Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
[email protected]<mailto:[email protected]>.
To post to this group, send an email to 
[email protected]<mailto:[email protected]>.
Visit this group at http://groups.google.com/group/pyfrmailinglist.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups "PyFR 
Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send an email to [email protected].
Visit this group at http://groups.google.com/group/pyfrmailinglist.
For more options, visit https://groups.google.com/d/optout.

Reply via email to