PATHGPU with OpenCL and CUDA support

Discussion related to the LuxCore functionality, implementations and API.
epilectrolytics
Donor
Donor
Posts: 790
Joined: Thu Oct 04, 2018 6:06 am

Re: PATHGPU with OpenCL and CUDA support

Post by epilectrolytics »

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

Sorry for being so dense but I have no Idea how to use the terminal, there's zero UNIX knowledge.
If you post me a string I will type it in and we'll see what happens :lol:

I'm behind with the driver but it says "no newer driver available" ?
Screen Shot 2020-04-29 at 11.24.52.png
epilectrolytics
Donor
Donor
Posts: 790
Joined: Thu Oct 04, 2018 6:06 am

Re: PATHGPU with OpenCL and CUDA support

Post by epilectrolytics »

u3dreal wrote: Wed Apr 29, 2020 9:19 am Can you run blender from terminal and post the output ?
Found out how to do it (right-click on executable and choose: open with terminal)

Code: Select all

[LuxRays][29.909] [BVHKernel] Compiling kernels
[LuxRays][29.910] [BVHKernel] CUDA program compilation error: 
nvrtc: error: failed to open libnvrtc-builtins.dylib.
  Make sure that libnvrtc-builtins.dylib is installed correctly.
Traceback (most recent call last):
  File "/Users/me/Library/Application Support/Blender/2.82/scripts/addons/BlendLuxCore/engine/base.py", line 83, in render_final
    final.render(self, depsgraph)
  File "/Users/me/Library/Application Support/Blender/2.82/scripts/addons/BlendLuxCore/engine/final.py", line 49, in render
    _render_layer(engine, depsgraph, statistics, layer)
  File "/Users/me/Library/Application Support/Blender/2.82/scripts/addons/BlendLuxCore/engine/final.py", line 73, in _render_layer
    engine.session.Start()
RuntimeError: BVHKernel CUDA program compilation error
ERROR: BVHKernel CUDA program compilation error
[LuxRays][29.921] WARNING: there is a memory leak in LuxRays HardwareDevice GeForce GT 750M CUDAIntersect: 896bytes
This is the CUDA installation:
Screen Shot 2020-04-29 at 11.42.13.png
Update:
I'm pretty sure your higher driver number results from CUDA 10.2 instead of 10.1 toolkit installed!
Going to try...
acasta69
Developer
Developer
Posts: 472
Joined: Tue Jan 09, 2018 3:45 pm
Location: Italy

Re: PATHGPU with OpenCL and CUDA support

Post by acasta69 »

Version 418 seems compatible with 10.1 toolkit, see here:
https://docs.nvidia.com/cuda/cuda-toolk ... index.html
Versions are not shown for MacOS, but I guess major number cannot differ too much.

If you build with toolkit 10.2, you are probably going to need an updated driver.
Support LuxCoreRender project with salts and bounties

Windows 10 64 bits, i7-4770 3.4 GHz, RAM 16 GB, GTX 970 4GB v445.87
User avatar
u3dreal
Developer
Developer
Posts: 560
Joined: Tue Dec 03, 2019 3:23 pm
Location: Ulm
Contact:

Re: PATHGPU with OpenCL and CUDA support

Post by u3dreal »

I really will have check with my other mac. In theory it should work ... since i also just installed 10.1
I think i downgraded to 10.1 since Dade suggested that somewhere for compilation.
check out my newest stuff http://q3de.com/research/
portfolio http://q3de.com/


MB Pro i7 2.3Ghz, IrisPro 1.5GB, GTX750m 2GB - BigSur
Xeon X5650@4Ghz, RX 5700 - BigSur , Windows 10, Ubuntu 20.04
epilectrolytics
Donor
Donor
Posts: 790
Joined: Thu Oct 04, 2018 6:06 am

Re: PATHGPU with OpenCL and CUDA support

Post by epilectrolytics »

epilectrolytics wrote: Wed Apr 29, 2020 9:37 am I'm pretty sure your higher driver number results from CUDA 10.2 instead of 10.1 toolkit installed!
Going to try...
Nonsense.
CUDA 10.2 comes with a 440.xxx driver and then the add-on asks for the 10.1 lib, so no success.
But I cannot find where the 418.243 comes from?
In nVidia's archive the 418.163 is the highest available.

Restored to pre-cuda state, but kept the 10.1 dmg in case... :lol:
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: PATHGPU with OpenCL and CUDA support

Post by Dade »

epilectrolytics wrote: Wed Apr 29, 2020 11:15 am
epilectrolytics wrote: Wed Apr 29, 2020 9:37 am I'm pretty sure your higher driver number results from CUDA 10.2 instead of 10.1 toolkit installed!
Going to try...
Nonsense.
CUDA 10.2 comes with a 440.xxx driver and then the add-on asks for the 10.1 lib, so no success.
But I cannot find where the 418.243 comes from?
In nVidia's archive the 418.163 is the highest available.

Restored to pre-cuda state, but kept the 10.1 dmg in case... :lol:
It is not a driver problem, the DLLs are included only in NVIDIA CUDA SDK so or they are included in BlendLuxCore (like on Windows) or you need to install CUDA SDK.
Support LuxCoreRender project with salts and bounties
epilectrolytics
Donor
Donor
Posts: 790
Joined: Thu Oct 04, 2018 6:06 am

Re: PATHGPU with OpenCL and CUDA support

Post by epilectrolytics »

Dade wrote: Wed Apr 29, 2020 11:19 am It is not a driver problem, the DLLs are included only in NVIDIA CUDA SDK so or they are included in BlendLuxCore (like on Windows) or you need to install CUDA SDK.
Yes, I have the SDK installed and the DLL (dylib on a Mac) is there but the add-on cannot find it on my machine but it does on u3dreal's machine...
If it is only this single library including it in BlendLuxCore OSX would be preferable than needing a 4GB SDK installation (smaller install is possible, but beyond my skills).
User avatar
Odilkhan Yakubov
Posts: 208
Joined: Fri Jan 26, 2018 10:07 pm
Location: Tashkent, Uzbekistan

Re: PATHGPU with OpenCL and CUDA support

Post by Odilkhan Yakubov »

Why kernels always compiling on every new scene or when re-open Blender itself? It goesaround 5-10 minutes for compiling everytime :(
___________________________________________________________________________
LuxCoreRender Developer for Blender
___________________________________________________________________________
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: PATHGPU with OpenCL and CUDA support

Post by Dade »

epilectrolytics wrote: Wed Apr 29, 2020 11:26 am
Dade wrote: Wed Apr 29, 2020 11:19 am It is not a driver problem, the DLLs are included only in NVIDIA CUDA SDK so or they are included in BlendLuxCore (like on Windows) or you need to install CUDA SDK.
Yes, I have the SDK installed and the DLL (dylib on a Mac) is there but the add-on cannot find it on my machine but it does on u3dreal's machine...
If it is only this single library including it in BlendLuxCore OSX would be preferable than needing a 4GB SDK installation (smaller install is possible, but beyond my skills).
There are 2 DLLs used: nvrtc and nvrtc builtins.
Support LuxCoreRender project with salts and bounties
marcatore
Donor
Donor
Posts: 463
Joined: Wed Jan 10, 2018 8:04 am

Re: PATHGPU with OpenCL and CUDA support

Post by marcatore »

I've problem with bump and HSV nodes.

I've opened this on BlendLuxCore but actually I don't know if it's something related more to LuxCore itself or Blender addon.
https://github.com/LuxCoreRender/BlendL ... issues/436

Anyway I report this.
Post Reply