Windows Build FAILED

Discussion related to the LuxCore functionality, implementations and API.
Post Reply
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Windows Build FAILED

Post by B.Y.O.B. »

Ah, didn't know it was deprecated. I'll use the replacement.
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Windows Build FAILED

Post by B.Y.O.B. »

Ok, CUDA devices now show up in BlendLuxCore and the device string is now the correct length.

However, I'm getting the following error:

Code: Select all

[LuxRays][12.891] [BVHKernel] Compiling kernels
[LuxRays][12.891] [BVHKernel] CUDA program compilation error:
nvrtc: error: failed to open nvrtc-builtins64_101.dll.
  Make sure that nvrtc-builtins64_101.dll is installed correctly.
Traceback (most recent call last):
  File "C:\Users\Simon\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\BlendLuxCore_git\engine\base.py", line 83, in render_final
    final.render(self, depsgraph)
  File "C:\Users\Simon\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\BlendLuxCore_git\engine\final.py", line 49, in render
    _render_layer(engine, depsgraph, statistics, layer)
  File "C:\Users\Simon\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\BlendLuxCore_git\engine\final.py", line 73, in _render_layer
    engine.session.Start()
RuntimeError: BVHKernel CUDA program compilation error
Do I have to install anything besides the Nvidia driver to make it work on Windows 10?
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Windows Build FAILED

Post by Dade »

B.Y.O.B. wrote: Sun Apr 26, 2020 9:57 pm Do I have to install anything besides the Nvidia driver to make it work on Windows 10?
The DLL is included in CUDA SDK however I was under the impression Acasta69 was including the DLL in our archive too :?:
Support LuxCoreRender project with salts and bounties
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Windows Build FAILED

Post by B.Y.O.B. »

Dade wrote: Sun Apr 26, 2020 11:18 pm
B.Y.O.B. wrote: Sun Apr 26, 2020 9:57 pm Do I have to install anything besides the Nvidia driver to make it work on Windows 10?
The DLL is included in CUDA SDK however I was under the impression Acasta69 was including the DLL in our archive too :?:
I have these binaries in the addon's bin folder:
Attachments
Capture.PNG
Capture.PNG (9.62 KiB) Viewed 4196 times
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Windows Build FAILED

Post by Dade »

B.Y.O.B. wrote: Sun Apr 26, 2020 11:46 pm
Dade wrote: Sun Apr 26, 2020 11:18 pm
B.Y.O.B. wrote: Sun Apr 26, 2020 9:57 pm Do I have to install anything besides the Nvidia driver to make it work on Windows 10?
The DLL is included in CUDA SDK however I was under the impression Acasta69 was including the DLL in our archive too :?:
I have these binaries in the addon's bin folder:
I assume Nvidia driver doesn't look in that directory. The builtin dll is likely to be loaded by the driver.
Support LuxCoreRender project with salts and bounties
acasta69
Developer
Developer
Posts: 472
Joined: Tue Jan 09, 2018 3:45 pm
Location: Italy

Re: Windows Build FAILED

Post by acasta69 »

Dade wrote: Sun Apr 26, 2020 11:57 pm I assume Nvidia driver doesn't look in that directory. The builtin dll is likely to be loaded by the driver.
On my desktop PC LuxcoreUI works correctly with the two DLLs in the same folder as the LuxcoreUI executable, and stops working when I remove them.
I assumed the same was true for pyluxcore, but it stopped with the "wrong length" error for the device selection string, and probably the DLLs are search for later.

At the moment I am on my laptop and situation is a bit different. This is what I get in Blender console when trying to render the default cube scene with PathOCL + CUDA:

Code: Select all

[LuxRays][1244.016] [Device Quadro M1000M CUDAIntersect] Sample buffer size: 311296Kbytes
Traceback (most recent call last):
  File "C:\Users\italcas1\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\BlendLuxCore\engine\base.py", line 83, in render_final
    final.render(self, depsgraph)
  File "C:\Users\italcas1\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\BlendLuxCore\engine\final.py", line 49, in render
    _render_layer(engine, depsgraph, statistics, layer)
  File "C:\Users\italcas1\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\BlendLuxCore\engine\final.py", line 73, in _render_layer
    engine.session.Start()
RuntimeError: CUDA driver API error CUDA_ERROR_OUT_OF_MEMORY (code: 2, file:D:\a\1\Luxcore\src\luxrays\devices\cudadevice.cpp, line: 440): out of memory

ERROR: CUDA driver API error CUDA_ERROR_OUT_OF_MEMORY (code: 2, file:D:\a\1\Luxcore\src\luxrays\devices\cudadevice.cpp, line: 440): out of memory

Error: CUDA driver API error CUDA_ERROR_OUT_OF_MEMORY (code: 2, file:D:\a\1\Luxcore\src\luxrays\devices\cudadevice.cpp, line: 440): out of memory
At that point the two DLLs should have already kicked in.

I'll do more tests as soon as possible, but I have two-three quite busy days ahead of me, sorry...

P.S. By the way, the cube scene works perfectly on the laptop if I select the openCL device.
Support LuxCoreRender project with salts and bounties

Windows 10 64 bits, i7-4770 3.4 GHz, RAM 16 GB, GTX 970 4GB v445.87
acasta69
Developer
Developer
Posts: 472
Joined: Tue Jan 09, 2018 3:45 pm
Location: Italy

Re: Windows Build FAILED

Post by acasta69 »

Indeed, another quick test on the laptop showed that, if the DLLs are not present at all, the addon is not even loaded.
Restoring them in the addon bin directory made it work.
Support LuxCoreRender project with salts and bounties

Windows 10 64 bits, i7-4770 3.4 GHz, RAM 16 GB, GTX 970 4GB v445.87
johannes.wilde
Posts: 68
Joined: Fri Sep 21, 2018 7:57 am

Re: Windows Build FAILED

Post by johannes.wilde »

[LuxRays][30.219] [BVHKernel] Compiling kernels
[LuxRays][30.219] [BVHKernel] CUDA program compilation error:
nvrtc: error: failed to open nvrtc-builtins64_101.dll.
Make sure that nvrtc-builtins64_101.dll is installed correctly.

This is what i get with BlendLuxCoreCuda for Win with the latest builds
mischterlampe
Posts: 44
Joined: Fri Apr 03, 2020 6:22 pm

Re: Windows Build FAILED

Post by mischterlampe »

Hi,

I use the Link from kintux a few days ago.
http://www.cngwireless.net/apps/Drivers ... etwork.exe
to download the nvidia cuda sdk and the the compiling worked.

But I think there is a newer SDK Version available. Dont know if that makes a different.


But I ran into the next problem.
I get this error:

self._width, self._height, combined.as_pointer(), False, True)
RuntimeError: clEnqueueWriteBuffer
ERROR: clEnqueueWriteBuffer
[LuxCore][1690.265] [GeForce RTX 2070 OpenCLIntersect] Memory used for hardware image pipeline: 1025390Kbytes

I have two rtx cards and when i select both for cuda rendering i get the error. Also if i choose the one where the monitor is connected.
If I choose only the second one I can render the image.
Viewport rendering works with both selected.
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Windows Build FAILED

Post by Dade »

acasta69 wrote: Mon Apr 27, 2020 7:22 am At the moment I am on my laptop and situation is a bit different. This is what I get in Blender console when trying to render the default cube scene with PathOCL + CUDA:

Code: Select all

[LuxRays][1244.016] [Device Quadro M1000M CUDAIntersect] Sample buffer size: 311296Kbytes
It may be this problem: https://stackoverflow.com/questions/138 ... mory-fails

311296Kbytes is a quite big chunk of memory and you may hit a this Windows specfic limit on the laptop :?:
Support LuxCoreRender project with salts and bounties
Post Reply