Page 6 of 8

Re: PATHGPU with OpenCL and CUDA support

Posted: Tue Apr 28, 2020 7:41 pm
by u3dreal
epilectrolytics wrote: Tue Apr 28, 2020 7:06 pm

Code: Select all

 Library not loaded: @rpath/libnvrtc.10.1.dylib
  Referenced from: /Users/me/Library/Application Support/Blender/2.82/scripts/addons/BlendLuxCore/bin/pyluxcore.so
  Reason: image not found
Are you sure you have CUDA 10.1 installed ? Does /Developer/NVIDIA/CUDA-10.1/lib/libnvrtc.10.1.dylib exist ?

Will have to check with my other mac.

Re: PATHGPU with OpenCL and CUDA support

Posted: Tue Apr 28, 2020 7:55 pm
by epilectrolytics
u3dreal wrote: Tue Apr 28, 2020 7:41 pm Are you sure you have CUDA 10.1 installed ? Does /Developer/NVIDIA/CUDA-10.1/lib/libnvrtc.10.1.dylib exist ?
Ah sorry, my nVidia Web driver told me I'm up to date so I thought I have everything ready but this is a developer's thing?
Can it be downloaded for free somewhere without an account?

Edit: Just downloading this and will get back later.

Edit II: Do I need Xcode too ??

Re: PATHGPU with OpenCL and CUDA support

Posted: Tue Apr 28, 2020 8:01 pm
by u3dreal
I do not provide all the nvidia stuff .. you need to install 10.1 Cuda Toolkit full. Not just the driver.

You might also do

Code: Select all

install_name_tool -change @rpath/libnvrtc.10.1.dylib @rpath/libnvrtc.dylib /Users/YOURUSERNAME/Library/Application Support/Blender/2.82scripts/addons/BlendLuxCore/bin/pyluxcore.so 
This might enable other versions of cuda.

Re: PATHGPU with OpenCL and CUDA support

Posted: Tue Apr 28, 2020 8:03 pm
by u3dreal
epilectrolytics wrote: Tue Apr 28, 2020 7:55 pm Edit II: Do I need Xcode too ??
No the cuda installer should be enough.
https://developer.nvidia.com/cuda-10.1- ... rsion=1013

Re: PATHGPU with OpenCL and CUDA support

Posted: Tue Apr 28, 2020 8:09 pm
by epilectrolytics
Thanks for the explanation.

I'm not going to do that, way to much effort for something nice to have but not really needed given my powerful PC.
My main system is still 10.12.6, on the 10.13.6 partition there is only 11GB free space, not enough for those spacious development kits.

But thanks anyways :)

Re: PATHGPU with OpenCL and CUDA support

Posted: Tue Apr 28, 2020 8:22 pm
by u3dreal
You could download the network installer
https://developer.nvidia.com/cuda-10.1- ... dmgnetwork

and run it with

Code: Select all

-s nvcc_10.1 cudart_10.1 nvrtc_10.1 nvrtc_dev_10.1
from the terminal.

this will do a minimal install.

Re: PATHGPU with OpenCL and CUDA support

Posted: Tue Apr 28, 2020 9:07 pm
by Dade
u3dreal wrote: Tue Apr 28, 2020 8:03 pm
epilectrolytics wrote: Tue Apr 28, 2020 7:55 pm Edit II: Do I need Xcode too ??
No the cuda installer should be enough.
https://developer.nvidia.com/cuda-10.1- ... rsion=1013
In Windows version, we include the NVRTC DLL too :idea:

Re: PATHGPU with OpenCL and CUDA support

Posted: Tue Apr 28, 2020 9:34 pm
by u3dreal
Dade wrote: Tue Apr 28, 2020 9:07 pm In Windows version, we include the NVRTC DLL too :idea:
Oh i missed that thanks ! edited

Re: PATHGPU with OpenCL and CUDA support

Posted: Wed Apr 29, 2020 9:14 am
by epilectrolytics
u3dreal wrote: Tue Apr 28, 2020 8:22 pm and run it with

Code: Select all

-s nvcc_10.1 cudart_10.1 nvrtc_10.1 nvrtc_dev_10.1
from the terminal.
I have no idea what that means :?
Instead I installed the driver & toolkit but not the samples, and so could make the add-on work.
But when trying to render with the cuda setting there is a BVH kernel compilation error.
Screen Shot 2020-04-29 at 10.57.54.png
I updated the cuda driver (418.163) via system preferences and apparently still the nVidia web-driver is in use?
Do I have to run some app from the newly installed CUDA developer stuff first to activate it?
libnvrtc.10.1.dylib exists in the bin folder.

Re: PATHGPU with OpenCL and CUDA support

Posted: Wed Apr 29, 2020 9:19 am
by u3dreal
Can you run blender from terminal and post the output ?

This is the driver verision i run.