Windows Build FAILED

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

Re: Windows Build FAILED

Post by epilectrolytics » Fri Apr 24, 2020 12:44 pm

acasta69 wrote:
Fri Apr 24, 2020 9:54 am
At the moment the CUDA build is working for me and also on Azure.
Thanks for your effort!

When looking into the "latest" releases there are now three windows versions: CUDA, OCL and non-OCL.
When trying to open LuxCoreUI from the CUDA version I get this:
Screenshot.jpg
PC with Win10Pro1909.

Of BlendLuxCore there is no separate CUDA version.

Sorry I don't know anything about building myself, just want to give feedback on the latest releases on Azure.

acasta69
Developer
Posts: 361
Joined: Tue Jan 09, 2018 3:45 pm

Re: Windows Build FAILED

Post by acasta69 » Fri Apr 24, 2020 12:48 pm

Thank you for your feedback! :)
Indeed, there is something still to be fixed: gathering the required dll for for cuda version is not working at the moment, I am looking into that.
As soon as everything works, I will add it also to BlendLuxcore.
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
Dade
Developer
Posts: 4817
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Windows Build FAILED

Post by Dade » Fri Apr 24, 2020 2:10 pm

acasta69 wrote:
Fri Apr 24, 2020 12:48 pm
Indeed, there is something still to be fixed: gathering the required dll for for cuda version is not working at the moment, I am looking into that.
According: https://docs.nvidia.com/cuda/nvrtc/index.html

The requirements on Windows are:
- nvrtc64_Major Release VersionMinor Release Version.dll
- nvrtc-builtins64_Major Release VersionMinor Release Version.dll

@KintuX, as work around, you can install CUDA SDK v10.1.

I was assuming NVRTC (Run Time Compiler) was included in NVIDIA drivers but I guess, it isn't. This could be annoying.
Support LuxCoreRender project with salts and bounties

User avatar
Dade
Developer
Posts: 4817
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Windows Build FAILED

Post by Dade » Fri Apr 24, 2020 2:20 pm

Dade wrote:
Fri Apr 24, 2020 2:10 pm
I was assuming NVRTC (Run Time Compiler) was included in NVIDIA drivers but I guess, it isn't. This could be annoying.
Anyway, from my understanding of the NVIDIA license, we are allowed to redistribute part of their SDK: https://docs.nvidia.com/cuda/eula/index ... er-license and https://docs.nvidia.com/cuda/eula/index ... tachment-a
Support LuxCoreRender project with salts and bounties

acasta69
Developer
Posts: 361
Joined: Tue Jan 09, 2018 3:45 pm

Re: Windows Build FAILED

Post by acasta69 » Fri Apr 24, 2020 3:43 pm

The problem was in this line that should make a script variable available to the rest of the pipeline job:

Code: Select all

echo "##vso[task.setvariable variable=cuda.path]%CUDA_PATH%"
Apparently, in a CMD shell a bug causes a wrong output value, i.e. one double quote character at the end of the value, which then prevents the file copy from working.
Doing it with a bash script solved it.

I have a faint hope that this long debugging is close to an end...
Dade wrote:
Fri Apr 24, 2020 2:10 pm
The requirements on Windows are:
- nvrtc64_Major Release VersionMinor Release Version.dll
- nvrtc-builtins64_Major Release VersionMinor Release Version.dll

@KintuX, as work around, you can install CUDA SDK v10.1.

I was assuming NVRTC (Run Time Compiler) was included in NVIDIA drivers but I guess, it isn't. This could be annoying.
Yes, those are the two files I was trying to retrieve from the Cuda installation, and they are not included in the drivers.
The cuda runtime, instead, is there.

One more thing to note, according to Nvidia docs:
Each release of the CUDA Toolkit requires a minimum version of the CUDA driver. The CUDA driver is backward compatible, meaning that applications compiled against a particular version of the CUDA will continue to work on subsequent (later) driver releases.
For version 10.1 the minimum driver version is 418.39 for Linux and 418.96 for Windows. Version 10.2 would need at least drivers 440/441.
Support LuxCoreRender project with salts and bounties

Windows 10 64 bits, i7-4770 3.4 GHz, RAM 16 GB, GTX 970 4GB v445.87

epilectrolytics
Donor
Posts: 708
Joined: Thu Oct 04, 2018 6:06 am

Re: Windows Build FAILED

Post by epilectrolytics » Fri Apr 24, 2020 4:26 pm

Update:
With the newest version of luxcorerender-latest-win64-cuda (c72dd9e) I can open the cornell-box scene included.
Once I switch to "PathOCL" it crashes immediately with no error message.
When switching to RTPathOCL or TilePathOCL it compiles kernels first but crashes then before starting to render.
PC with 2xRTX 2070, driver version 442.19.

User avatar
Dade
Developer
Posts: 4817
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Windows Build FAILED

Post by Dade » Fri Apr 24, 2020 6:02 pm

epilectrolytics wrote:
Fri Apr 24, 2020 4:26 pm
Update:
With the newest version of luxcorerender-latest-win64-cuda (c72dd9e) I can open the cornell-box scene included.
Once I switch to "PathOCL" it crashes immediately with no error message.
When switching to RTPathOCL or TilePathOCL it compiles kernels first but crashes then before starting to render.
PC with 2xRTX 2070, driver version 442.19.
It may be related to having 2 CUDA devices, I have not tried the CUDA with multiple CUDA devices, have you tried to select only one ?
Support LuxCoreRender project with salts and bounties

neo2068
Developer
Posts: 225
Joined: Tue Dec 05, 2017 6:06 pm
Location: Germany

Re: Windows Build FAILED

Post by neo2068 » Fri Apr 24, 2020 6:43 pm

Yes, it is related to multi GPU config. It compiles the kernels and exit without error. The same happens if you change some render config with only one device selected, e. g. sampler or render size.
i7 5820K, 32 GB RAM, NVIDIA Geforce RTX 2080 SUPER + GTX 1080, Windows 10 64bit, Blender 2.83.4
Support LuxCoreRender project with salts and bounties

epilectrolytics
Donor
Posts: 708
Joined: Thu Oct 04, 2018 6:06 am

Re: Windows Build FAILED

Post by epilectrolytics » Fri Apr 24, 2020 6:46 pm

Dade wrote:
Fri Apr 24, 2020 6:02 pm
have you tried to select only one ?
Because of the auto-start render in LuxCoreUI I cannot select a device there.
When I open the Cornell Box scene it starts rendering in PathCPU mode and OCL devices are not selectable.
Once I switch to OCL it crashes before I can select anything.

I exported something from Blender with PathOCL and only one RTX selected.
It crashes immediately when opened with LuxCoreUI cuda version.

Maybe LuxCoreUI should be updated with "PathHW" engine and device editor distinguishing between OCL and CUDA (and auto start disabled too ;) ).

Also in the real OCL, non-CUDA version of LuxCoreUI, when I switch from PathCPU to PathOCL (again Cornell scene) it starts rendering including all native devices (all GPU and CPU) although in the editor the CPU is not selected (I have no AMD Ryzen OCL driver installed).

kintuX
Posts: 594
Joined: Wed Jan 10, 2018 2:37 am

Re: Windows Build FAILED

Post by kintuX » Fri Apr 24, 2020 9:44 pm

Right now I'm getting nowhere fast :D

Code: Select all

...
CUDA_TOOLKIT_ROOT_DIR not found or specified
-- Could NOT find CUDA (missing: CUDA_TOOLKIT_ROOT_DIR CUDA_NVCC_EXECUTABLE CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY)
-- Found OpenMP_C: -openmp (found version "2.0")
-- Found OpenMP_CXX: -openmp (found version "2.0")
-- Found OpenMP: TRUE (found version "2.0")
-- OpenMP found - compiling with
-- Found BISON: C:\luxcorerender\WindowsCompile/support/bin/win_bison.exe (found version "2.7")
-- Found FLEX: C:\luxcorerender\WindowsCompile/support/bin/win_flex.exe (found version "2.5.37")
CMake Error at CMakeLists.txt:117 (MESSAGE):
  --> CUDA support requires to enable OpenCL support too


-- Configuring incomplete, errors occurred!
See also "C:/luxcorerender/WindowsCompile/Build_CMake/LuxCore/CMakeFiles/CMakeOutput.log".
See also "C:/luxcorerender/WindowsCompile/Build_CMake/LuxCore/CMakeFiles/CMakeError.log".
--- FATAL ERROR RUNNING CMAKE ---

C:\luxcorerender\WindowsCompile>
Dade wrote:
Fri Apr 24, 2020 2:10 pm
acasta69 wrote:
Fri Apr 24, 2020 12:48 pm
Indeed, there is something still to be fixed: gathering the required dll for for cuda version is not working at the moment, I am looking into that.
According: https://docs.nvidia.com/cuda/nvrtc/index.html

The requirements on Windows are:
- nvrtc64_Major Release VersionMinor Release Version.dll
- nvrtc-builtins64_Major Release VersionMinor Release Version.dll

@KintuX, as work around, you can install CUDA SDK v10.1.

I was assuming NVRTC (Run Time Compiler) was included in NVIDIA drivers but I guess, it isn't. This could be annoying.
Is there a way to have bare minimal files, since I really don't want to DL the whole 2.6 GB while needing maybe 10% of that... ?
To me every Byte matters. ;)
Attachments
CMakeFiles.7z
(52.26 KiB) Downloaded 50 times

Post Reply