Unified executable (for CPU-only, OpenCL and CUDA)

Discussion related to the LuxCore functionality, implementations and API.
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Unified executable (for CPU-only, OpenCL and CUDA)

Post by Dade »

Dade wrote: Thu May 28, 2020 9:43 pm
acasta69 wrote: Thu May 28, 2020 7:27 pm Defining LUXRAYS_DISABLE_CUDA and LUXRAYS_DISABLE_OPENCL seems to have no effect: LuxCoreUI still allows to choose OCL render engines. I'll try to check why this happens.
Yes but it should have no device available at all for the rendering. I guess it could be removed from the menu too.
I updated LuxCoreUI to show OpenCL/CUDA related options only if OpenCL/CUDA is available at runtime.
Support LuxCoreRender project with salts and bounties
User avatar
u3dreal
Developer
Developer
Posts: 560
Joined: Tue Dec 03, 2019 3:23 pm
Location: Ulm
Contact:

Re: Unified executable (for CPU-only, OpenCL and CUDA)

Post by u3dreal »

In process of updating deps and azure files .... seems luxcore only needs libcuda.dylib and libnvrtc.dylib ...
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
User avatar
u3dreal
Developer
Developer
Posts: 560
Joined: Tue Dec 03, 2019 3:23 pm
Location: Ulm
Contact:

Re: Unified executable (for CPU-only, OpenCL and CUDA)

Post by u3dreal »

Done

No access to secure file for me .. should i merge ? otherwise no check possible. maybe you can check ..

https://github.com/LuxCoreRender/LuxCore/pull/381
Last edited by u3dreal on Fri May 29, 2020 12:37 pm, edited 1 time in total.
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
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Unified executable (for CPU-only, OpenCL and CUDA)

Post by Dade »

u3dreal wrote: Fri May 29, 2020 11:17 am In process of updating deps and azure files .... seems luxcore only needs libcuda.dylib and libnvrtc.dylib ...
Don't you need only libnvrtc.dylib ? Isn't libcuda.dylib already installed on the system by the driver ?

P.S. don't forget also the nvrtc-builtin DLL too.
Support LuxCoreRender project with salts and bounties
User avatar
u3dreal
Developer
Developer
Posts: 560
Joined: Tue Dec 03, 2019 3:23 pm
Location: Ulm
Contact:

Re: Unified executable (for CPU-only, OpenCL and CUDA)

Post by u3dreal »

Dade wrote: Fri May 29, 2020 12:36 pm
Don't you need only libnvrtc.dylib ? Isn't libcuda.dylib already installed on the system by the driver ?
Will have to check ..
Dade wrote: Fri May 29, 2020 12:36 pm P.S. don't forget also the nvrtc-builtin DLL too.
OK which one is needed ?? libnvrtc-buildins.dylib or libnvrtc-buildins.10.1.dylib

Are you sure ??? if so i will have to add the path for libnvrtc-buildins also somewhere in the code ..
I checked with otool ... libtool for osx ... libcuda or libnvrtc do not depend on libnvrtc-buildins .. ?

I think libcuda is not included with the driver since it is in Developer folder ... which does not get created when installing just the driver

when could i notice that buildins is missing ?
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
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Unified executable (for CPU-only, OpenCL and CUDA)

Post by Dade »

It is explained here: viewtopic.php?f=5&t=2201&start=20#p23231

You need to see both:

Code: Select all

CUDA support: enabled
CUDA support: available
Support LuxCoreRender project with salts and bounties
User avatar
u3dreal
Developer
Developer
Posts: 560
Joined: Tue Dec 03, 2019 3:23 pm
Location: Ulm
Contact:

Re: Unified executable (for CPU-only, OpenCL and CUDA)

Post by u3dreal »

Dade wrote: Fri May 29, 2020 1:56 pm

Code: Select all

CUDA support: enabled
CUDA support: available
Ok then everything is fine now. I will commit.
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
User avatar
u3dreal
Developer
Developer
Posts: 560
Joined: Tue Dec 03, 2019 3:23 pm
Location: Ulm
Contact:

Re: Unified executable (for CPU-only, OpenCL and CUDA)

Post by u3dreal »

Wow new azure record 36min :D So cool we just have to compile once .. all seems fine will test when linux and windows finished.

We should also update this

Code: Select all

[ 88%] [BISON][lux_parser] Building parser with bison 3.6.2
/Users/runner/runners/2.168.2/work/1/s/src/luxcore/luxparser/luxparse.y:20.1-35: warning: deprecated directive: ‘%name-prefix "luxcore_parserlxs_yy"’, use ‘%define api.prefix {luxcore_parserlxs_yy}’ [-Wdeprecated]
   20 | %name-prefix "luxcore_parserlxs_yy"
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      | %define api.prefix {luxcore_parserlxs_yy}
i use bison 3.6 now .. so it should be no problem on my side
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
acasta69
Developer
Developer
Posts: 472
Joined: Tue Jan 09, 2018 3:45 pm
Location: Italy

Re: Unified executable (for CPU-only, OpenCL and CUDA)

Post by acasta69 »

Dade wrote: Fri May 29, 2020 10:55 am
Dade wrote: Thu May 28, 2020 9:43 pm
acasta69 wrote: Thu May 28, 2020 7:27 pm Defining LUXRAYS_DISABLE_CUDA and LUXRAYS_DISABLE_OPENCL seems to have no effect: LuxCoreUI still allows to choose OCL render engines. I'll try to check why this happens.
Yes but it should have no device available at all for the rendering. I guess it could be removed from the menu too.
I updated LuxCoreUI to show OpenCL/CUDA related options only if OpenCL/CUDA is available at runtime.
The GPU devices are actually available, I think the two definitions are not passed on from cmake to the build stage:

Code: Select all

CMake Warning:
  Manually-specified variables were not used by the project:

    LUXRAYS_DISABLE_CUDA
    LUXRAYS_DISABLE_OPENCL
Not a big problem in any case, I think.
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: Unified executable (for CPU-only, OpenCL and CUDA)

Post by acasta69 »

I have updated the azure pipeline files for Windows and it's running now. I'll check the binaries as soon as they are available.

About Linux: is it enough to build only the version with neither "opencl" nor "cuda" in the directory name?
Or do you need to modify the build scripts in the "LinuxCompile" repo?
Support LuxCoreRender project with salts and bounties

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