CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [OpenFOAM.org] Openfoam 4.1 conflicts with Cuda 7.5 on ubuntu 16.04 (https://www.cfd-online.com/Forums/openfoam-installation/184563-openfoam-4-1-conflicts-cuda-7-5-ubuntu-16-04-a.html)

Hillie March 6, 2017 01:47

Openfoam 4.1 conflicts with Cuda 7.5 on ubuntu 16.04
 
Hi all,

For a while I have been running openfoamV4.1 installed via apt-get and that has all gone smoothly.
This afternoon I though I would have a look at Cuda, the accelerated computing toolbox from Nvidia.
When I load Cuda in my .bashrc file I get the following error in openfoam:
reconstructPar: error while loading shared libraries: libfiniteVolume.so: cannot open shared object file: No such file or directory

And this happens when I try to run a solver as well.
When remove cuda from my bashrc file again all is merry again. So something in cuda is conflicting with OpenFoam.

Has anybody seen this before/ have an idea on how to fix it?

Cheers

wyldckat March 25, 2017 14:55

Greetings Hillie,

A few questions:
  1. I don't know if you've solved this issue?
  2. If not, what commands do you use to load CUDA into the shell environment?
  3. What happens if you load the CUDA environment after loading OpenFOAM 4.1's environment?
Best regards,
Bruno

Hillie April 3, 2017 21:59

Hi Bruno,

Thanks for you reply. I did solve the issue in the end. For the cuda installation I followed a walkthough on a forum, and not the official nvidia guide.

In the end changing the cuda lines in my .bashrc file to the lines below did the trick.
export PATH=$PATH:/usr/local/cuda-8.0.61/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-8.0.61/lib64

I haven't spend much time with it yet but I wanted to have a look at GPU assisted solvers for OpenFOAM,.

Cheers,
Hilbert



Quote:

Originally Posted by wyldckat (Post 642270)
Greetings Hillie,

A few questions:
  1. I don't know if you've solved this issue?
  2. If not, what commands do you use to load CUDA into the shell environment?
  3. What happens if you load the CUDA environment after loading OpenFOAM 4.1's environment?
Best regards,
Bruno



All times are GMT -4. The time now is 16:12.