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

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

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

Post by Dade » Sun May 31, 2020 10:38 pm

acasta69 wrote:
Sun May 31, 2020 4:36 pm
Edit: oh, I see, you probably mean the missing CUDA DLLs. Actually I'm not sure about that as well.
Where is this error ?
Support LuxCoreRender project with salts and bounties

User avatar
u3dreal
Developer
Posts: 408
Joined: Tue Dec 03, 2019 3:23 pm
Location: Ulm
Contact:

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

Post by u3dreal » Sun May 31, 2020 10:57 pm

There are no cuda libs in the package created by LuxCore Azure ..
check out my newest stuff http://q3de.com/research/
portfolio http://q3de.com/


MB Pro i7 2.3Ghz, IrisPro 1.5GB, GTX750m 2GB - High Sierra
Xeon X5650@4Ghz, 2x GTX 770 Phantom - High Sierra, Windows 10, Ubuntu 18.04

mib2berlin
Posts: 35
Joined: Fri Apr 06, 2018 6:29 pm

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

Post by mib2berlin » Mon Jun 01, 2020 4:19 am

Hi, testing latest Luxcore 2.4 on Linux and it work fine with but view port render compile forever.
I got following errors:

Code: Select all

Export took 0.0 s
[LuxCore][28007.456] Film resolution: 529x298
[SDL][28007.457] Film output definition: RGB_IMAGEPIPELINE [image.png]
[SDL][28007.457] Image pipeline: film.imagepipelines.000
[SDL][28007.457] Image pipeline step 0: NOP
[SDL][28007.457] Image pipeline step 1: TONEMAP_LINEAR
[SDL][28007.457] Film output definition: RGB_IMAGEPIPELINE [RGB_IMAGEPIPELINE_0.png]
[LuxRays][28007.457] OpenCL support: enabled
[LuxRays][28007.457] OpenCL Platform 0: NVIDIA CUDA
[LuxRays][28007.457] CUDA support: enabled
[LuxRays][28007.457] CUDA support: available
[LuxRays][28007.457] CUDA driver version: 10.20
[LuxRays][28007.457] CUDA device count: 1
[LuxRays][28007.457] Device 0 name: Native
[LuxRays][28007.457] Device 0 type: NATIVE_THREAD
[LuxRays][28007.457] Device 0 compute units: 1
[LuxRays][28007.457] Device 0 preferred float vector width: 4
[LuxRays][28007.457] Device 0 max allocable memory: 17592186044415MBytes
[LuxRays][28007.457] Device 0 max allocable memory block size: 17592186044415MBytes
[LuxRays][28007.457] Device 0 has out of core memory support: 0
[LuxRays][28007.457] Device 1 name: GeForce GTX 760
[LuxRays][28007.457] Device 1 type: OPENCL_GPU
[LuxRays][28007.457] Device 1 compute units: 6
[LuxRays][28007.457] Device 1 preferred float vector width: 1
[LuxRays][28007.458] Device 1 max allocable memory: 4029MBytes
[LuxRays][28007.458] Device 1 max allocable memory block size: 1007MBytes
[LuxRays][28007.458] Device 1 has out of core memory support: 0
[LuxRays][28007.458] Device 2 name: GeForce GTX 760
[LuxRays][28007.458] Device 2 type: CUDA_GPU
[LuxRays][28007.458] Device 2 compute units: 192
[LuxRays][28007.458] Device 2 preferred float vector width: 1
[LuxRays][28007.458] Device 2 max allocable memory: 4029MBytes
[LuxRays][28007.458] Device 2 max allocable memory block size: 17592186044415MBytes
[LuxRays][28007.458] Device 2 has out of core memory support: 1
[LuxRays][28007.458] Creating 1 intersection device(s)
[LuxRays][28007.458] Allocating intersection device 0: GeForce GTX 760 (Type = CUDA_GPU)
ERROR: CUDA driver API error CUDA_ERROR_UNKNOWN (code: 999, file:/home/vsts/work/1/s/LinuxCompile/LuxCore/src/luxrays/devices/cudadevice.cpp, line: 136): unknown error

Traceback (most recent call last):
  File "/home/pepo/blender-2.82-linux64/2.82/scripts/addons/BlendLuxCore/engine/viewport.py", line 51, in view_update
    engine.session = engine.exporter.create_session(depsgraph, context, engine=engine)
  File "/home/pepo/blender-2.82-linux64/2.82/scripts/addons/BlendLuxCore/export/__init__.py", line 247, in create_session
    return pyluxcore.RenderSession(renderconfig)
RuntimeError: CUDA driver API error CUDA_ERROR_UNKNOWN (code: 999, file:/home/vsts/work/1/s/LinuxCompile/LuxCore/src/luxrays/devices/cudadevice.cpp, line: 136): unknown error

[SDL][28007.461] Camera type: perspective
[SDL][28007.461] Camera position: Point[0, 0, 0]
[SDL][28007.461] Camera target: Point[0, 0, 0]
[SDL][28007.461] Camera clipping plane disabled
[LuxCore][28007.461] Configuration: 
[LuxCore][28007.461]   renderengine.type = "RTPATHOCL"
[LuxCore][28007.461]   sampler.type = "TILEPATHSAMPLER"
[LuxCore][28007.461]   scene.epsilon.min = 9.9999997473787516e-06
[LuxCore][28007.461]   scene.epsilon.max = 0.10000000149011612
[LuxCore][28007.461] File Name Resolver Configuration:

Code: Select all

/home/vsts/work/1/s/LinuxCompile/LuxCore/src/luxrays/devices/
does not exist.
I have Cuda toolkit 10.2, GTX 760, driver 440.82


Cheers, mib

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

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

Post by Dade » Mon Jun 01, 2020 11:04 am

mib2berlin wrote:
Mon Jun 01, 2020 4:19 am
I have Cuda toolkit 10.2, GTX 760, driver 440.82
Viewport rendering on Linux is working fine here however I'm using CUDA 10.1 but 10.2 shouldn't be a problem. The error looks quite strange and like a driver internal error. Does Cycles with CUDA works on the same PC ?
Support LuxCoreRender project with salts and bounties

mib2berlin
Posts: 35
Joined: Fri Apr 06, 2018 6:29 pm

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

Post by mib2berlin » Mon Jun 01, 2020 1:38 pm

@Dade, yes I compile Blender on this system and have to compile the Cuda kernel for my SM_30 card, too.
I will check on my Windows disk on the same system today.

Cheers, mib
EDIT: It work on Windows 10 with 441.87 but it show "Kernel OpenCL compilation need a few minutes, once." or so.
Back to Linux, will try to delete all kernels.
EDIT 2: It work now, delete all kernels and there was a lot of them.
Thanks for watching

PetrT
Posts: 51
Joined: Sun Dec 02, 2018 6:13 pm

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

Post by PetrT » Mon Jun 01, 2020 4:58 pm

one exe file is great
Many thanks to devs

Get interesting result on test scene
GPU 1min 04 sek
CPU 1min 02 sek
GPU+CPU 47sek

all with PGI on
Win 7 LuxCore (Last buld 01 june)
GPU GTX1070
CPU E5 2650v2

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

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

Post by acasta69 » Tue Jun 02, 2020 3:36 pm

Dade wrote:
Sun May 31, 2020 10:38 pm
acasta69 wrote:
Sun May 31, 2020 4:36 pm
Edit: oh, I see, you probably mean the missing CUDA DLLs. Actually I'm not sure about that as well.
Where is this error ?
u3dreal wrote:
Sun May 31, 2020 10:57 pm
There are no cuda libs in the package created by LuxCore Azure ..
@Dade, how does this work on Linux? Isn't it necessary to distribute the Nvidia nvrtc and nvrtc-builtins DLLs as for the other platforms?
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: 4380
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

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

Post by Dade » Tue Jun 02, 2020 10:09 pm

acasta69 wrote:
Tue Jun 02, 2020 3:36 pm
@Dade, how does this work on Linux? Isn't it necessary to distribute the Nvidia nvrtc and nvrtc-builtins DLLs as for the other platforms?
I have to check but I assume the answer is yes (they are not included with the drivers).
Support LuxCoreRender project with salts and bounties

Post Reply