Run Sailfish on Windows

179 views
Skip to first unread message

Sébastien Belleval

unread,
Apr 18, 2014, 12:04:17 PM4/18/14
to sailfi...@googlegroups.com
Hi I'm trying to run sailfish on Windows. I have Windows 7 x64 with an Nvidia Quadro 600.

I installed all the requirements and Cuda 6. But when I run C:\Python27\sailfish\examples>cylinder.py I have errors :

[   611  INFO Master/CFD6] Machine master starting with PID 3616 at 2014-04-18 1

3:20:47 UTC

The specified acces path coul't be found

[   618  INFO Master/CFD6] Handling subdomains: [0]

[   618  INFO Master/CFD6] Subdomain -> GPU map: {0: 0}

[   625 ERROR Master/CFD6] Failed to initialize compute backend. Make sure pycud

a/pyopencl is installed. When I install Cuda and pycuda, is there an extra manipulation ?

When I run cylinder.py --mode=visualization I have PicklingError and EOFError.

Thanks for your help.

Michal Januszewski

unread,
Apr 18, 2014, 6:46:48 PM4/18/14
to sailfi...@googlegroups.com
What happens if you try to run the following command?

python -c 'import pycuda.autoinit'

The errors you pasted suggest that the pycuda backend cannot be initialized successfully.


--

---
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.



--
Michal Januszewski

Sébastien Belleval

unread,
Apr 19, 2014, 4:46:29 PM4/19/14
to sailfi...@googlegroups.com
Hi Michael,

Firstly thanks for your help, I have the feelings I'am a little lost :/. I made the same install with an old PC with an Nvidia geforce 9600 GT but the problem is the same.
So in the two PC I try your code :

C:\Users\Maison>python

Python 2.7.6 (default, Nov 10 2013, 19:24:24) [MSC v.1500 64 bit (AMD64)] on win

32

Type "help", "copyright", "credits" or "license" for more information.

>>> import pycuda.autoinit

Traceback (most recent call last):

  File "<stdin>", line 1, in <module>

  File "C:\Python27\lib\site-packages\pycuda\autoinit.py", line 1, in <module>

    import pycuda.driver as cuda

  File "C:\Python27\lib\site-packages\pycuda\driver.py", line 2, in <module>

    from pycuda._driver import *

ImportError: DLL load failed: the specified module could not be found

>>> 


As I have the same problems with the 2 PCs I think the problem is my installation, so I describe you my process :


1) I installed Visual Studio Express 2013

2) I installed Cuda 6 (but the installation couldn't install some modules because I don't have visual studio 2008 or 2010)

3) I installed Python 2.7 and modified path C:\Python27;

4) I downloaded and installed : 

- Numpy-MKL-1.8

- Setuptools 3.4.4

- Scipy 0.13.3

- Sympy 0.7.5

- mako 0.9.1

- execnet 1.0.9

- pyzmq 14.1.1

- netifaces 0.8 (I have error: unable to find vcvarsall.bat)

- pycuda 2013.1.1


- pygame 1.9.2

- matplolib 1.3.1 (+ dateuil + pytz + pyparsing + six)

- wxpython

5) I download sailfish-master, rename it sailfish and put in C:\Python27

6) I created a file sailfish.pth in Lib\site-pakages\ 

7) I run the cylinder.py and I have the errors specified in my first message


Did I forget something ?

Michal Januszewski

unread,
Apr 21, 2014, 3:55:33 PM4/21/14
to sailfi...@googlegroups.com
Hi Sebastien,

It looks like the core problem is in "ImportError: DLL load failed: the specified module could not be found", which means that your pycuda installation is not working. I unfortunately don't have any experience with CUDA on Windows -- have you tried asking about this on the pycuda mailing lists? Also, what method did you use to install pycuda?

The netifaces failure should not matter much unless you want to run distributed simulations.

Hope this helps,
Michal


--

---
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.

Sébastien Belleval

unread,
Apr 22, 2014, 7:46:03 AM4/22/14
to sailfi...@googlegroups.com
Hi Michal,

I obtained pycuda in http://www.lfd.uci.edu/~gohlke/pythonlibs/#pycuda, the file is pycuda-2013.1.1.win-amd64-py2.7.exe . 

I am going to try the cuda examples, secondly I will install again pycuda and I'll come back toward you for some news.
Reply all
Reply to author
Forward
0 new messages