Page 6 of 7

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

Posted: Sun May 31, 2020 10:38 pm
by Dade
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 ?

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

Posted: Sun May 31, 2020 10:57 pm
by u3dreal
There are no cuda libs in the package created by LuxCore Azure ..

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

Posted: Mon Jun 01, 2020 4:19 am
by mib2berlin
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

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

Posted: Mon Jun 01, 2020 11:04 am
by Dade
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 ?

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

Posted: Mon Jun 01, 2020 1:38 pm
by mib2berlin
@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

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

Posted: Mon Jun 01, 2020 4:58 pm
by PetrT
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

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

Posted: Tue Jun 02, 2020 3:36 pm
by acasta69
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?

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

Posted: Tue Jun 02, 2020 10:09 pm
by Dade
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).

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

Posted: Wed Jul 08, 2020 11:26 pm
by Cekuhnen
Sorry for asking this silly question but where can you find CUDA support in luxcore 2.4 beta?

I am unable to know if via GPU it used openCL or CUDA?

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

Posted: Wed Jul 08, 2020 11:48 pm
by Dade
Cekuhnen wrote: Wed Jul 08, 2020 11:26 pm Sorry for asking this silly question but where can you find CUDA support in luxcore 2.4 beta?

I am unable to know if via GPU it used openCL or CUDA?
It should be in BlendLuxCore addon preferences :?: