OpenCL issue

60 views
Skip to first unread message

Victor

unread,
Jun 12, 2016, 10:37:21 AM6/12/16
to sailfish-cfd
I am trying to run sailfish using the OpenCL backend, but my efforts are failing with the following error:

~/sailfish_mj/sailfish/examples$ python cylinder.py --gpus=1
[   834  INFO Master/asus-minipc] Machine master starting with PID 5875 at 2016-06-12 14:29:48 UTC
[   834  INFO Master/asus-minipc] Simulation started with: cylinder.py --gpus=1
[   840  INFO Master/asus-minipc] Sailfish version: 2fb2de2f26e192cecc4a5b0d48466f11b90beb04
[   840  INFO Master/asus-minipc] Handling subdomains: [0]
[   840  INFO Master/asus-minipc] Subdomain -> GPU map: {0: 1}
[   841  INFO Master/asus-minipc] Selected backend: opencl
[   844  INFO Subdomain/0] SubdomainRunner starting with PID 5880
Process Subdomain/0:
Traceback (most recent call last):
  File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
    self.run()
  File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run
    self._target(*self._args, **self._kwargs)
  File "/home/~/sailfish_mj/sailfish/sailfish/master.py", line 49, in _start_subdomain_runner
    backend = backend_class(config, gpu_id)
  File "/home/~/sailfish_mj/sailfish/sailfish/backend_opencl.py", line 55, in __init__
    devices = [devices[gpu_id]]
IndexError: list index out of range

I am able to run pyopencl examples so I am somewhat confident that pyopencl is functioning well, but I am unable to run any sailfish applications as they all halt with the "IndexError: list index out of range" error.

Anyone have any suggestions?

Michal Januszewski

unread,
Jun 13, 2016, 4:52:42 AM6/13/16
to sailfi...@googlegroups.com
--gpus 1 tells Sailfish to use the 2nd GPU (the ids are 0-indexed). Have you tried omitting the --gpus argument completely?

--

---
You received this message because you are subscribed to the Google Groups "sailfish-cfd" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sailfish-cfd...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Victor

unread,
Jun 13, 2016, 2:36:16 PM6/13/16
to sailfish-cfd
Yes, made no difference. Rebooted today and all of a sudden my OpenCL device (Intel SDK) is now mapped as 0 and some sailfish examples are now running.
Reply all
Reply to author
Forward
0 new messages