Discussion related to the LuxCore functionality, implementations and API.
kintuX
Posts: 810 Joined: Wed Jan 10, 2018 2:37 am
Post
by kintuX » Wed Mar 25, 2020 3:52 pm
W10, Latest commit 04298f479, gives:
--- FATAL ERROR RUNNING CMAKE ---
Code: Select all
Build FAILED.
"C:\luxcorerender\WindowsCompile\Build_CMake\LuxCore\LuxRays.sln" (default target) (1) ->
"C:\luxcorerender\WindowsCompile\Build_CMake\LuxCore\src\luxrays\luxrays.vcxproj" (default target) (8) ->
(ClCompile target) ->
c:\luxcorerender\luxcore\src\luxrays\devices\ocldevice.cpp(244): error C2664: 'cl_int cl::Kernel::setArg(cl_ui
nt,size_t,void *)': cannot convert argument 3 from 'const void *' to 'void *' [C:\luxcorerender\WindowsCompile\B
uild_CMake\LuxCore\src\luxrays\luxrays.vcxproj]
Dade
Developer
Posts: 5672 Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy
Post
by Dade » Wed Mar 25, 2020 4:58 pm
kintuX wrote: ↑ Wed Mar 25, 2020 3:52 pm
W10, Latest commit 04298f479, gives:
--- FATAL ERROR RUNNING CMAKE ---
Code: Select all
Build FAILED.
"C:\luxcorerender\WindowsCompile\Build_CMake\LuxCore\LuxRays.sln" (default target) (1) ->
"C:\luxcorerender\WindowsCompile\Build_CMake\LuxCore\src\luxrays\luxrays.vcxproj" (default target) (8) ->
(ClCompile target) ->
c:\luxcorerender\luxcore\src\luxrays\devices\ocldevice.cpp(244): error C2664: 'cl_int cl::Kernel::setArg(cl_ui
nt,size_t,void *)': cannot convert argument 3 from 'const void *' to 'void *' [C:\luxcorerender\WindowsCompile\B
uild_CMake\LuxCore\src\luxrays\luxrays.vcxproj]
You may have a old/wrong/broken version of
https://www.khronos.org/registry/OpenCL/api/2.1/cl.hpp installed on your system. It is working fine with the linked cl.hpp on Azure for Windows.
acasta69
Developer
Posts: 472 Joined: Tue Jan 09, 2018 3:45 pm
Location: Italy
Post
by acasta69 » Wed Mar 25, 2020 5:01 pm
Most probably you need to replace file cl.hpp in your OpenCL SDK distribution with a more recent version.
You can download it from here:
https://www.khronos.org/registry/OpenCL/api/2.1/cl.hpp
Edit: Ooops, I didn't notice Dade answered in the meantime...
Support LuxCoreRender project with salts and bounties
Windows 10 64 bits, i7-4770 3.4 GHz, RAM 16 GB, GTX 970 4GB v445.87
kintuX
Posts: 810 Joined: Wed Jan 10, 2018 2:37 am
Post
by kintuX » Wed Mar 25, 2020 5:37 pm
Yup, that was it! Got it back on track and is building fine
Thank you both!
BTW - What is the "giveaway"? How can I recognize the culprit in the future?
Dade
Developer
Posts: 5672 Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy
Post
by Dade » Wed Mar 25, 2020 5:55 pm
kintuX wrote: ↑ Wed Mar 25, 2020 5:37 pm
BTW - What is the "giveaway"? How can I recognize the culprit in the future?
I doubt we will ever change OpenCL version (i.e. v1.2) so you should be fine with that file for any foreseeable future.
kintuX
Posts: 810 Joined: Wed Jan 10, 2018 2:37 am
Post
by kintuX » Fri Mar 27, 2020 1:53 am
Dade wrote: ↑ Wed Mar 25, 2020 5:55 pm
kintuX wrote: ↑ Wed Mar 25, 2020 5:37 pm
BTW - What is the "giveaway"? How can I recognize the culprit in the future?
I doubt we will ever change OpenCL version (i.e. v1.2) so you should be fine with that file for any foreseeable future.
Yeah, new era commences.
kintuX
Posts: 810 Joined: Wed Jan 10, 2018 2:37 am
Post
by kintuX » Thu Apr 23, 2020 8:59 pm
With the latest updates, running...
I get following error:
Code: Select all
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 ---
acasta69
Developer
Posts: 472 Joined: Tue Jan 09, 2018 3:45 pm
Location: Italy
Post
by acasta69 » Thu Apr 23, 2020 9:05 pm
I am working on the Cuda builds for Windows, but it's not yet totally ready...
Support LuxCoreRender project with salts and bounties
Windows 10 64 bits, i7-4770 3.4 GHz, RAM 16 GB, GTX 970 4GB v445.87
kintuX
Posts: 810 Joined: Wed Jan 10, 2018 2:37 am
Post
by kintuX » Thu Apr 23, 2020 9:12 pm
acasta69 wrote: ↑ Thu Apr 23, 2020 9:05 pm
I am working on the Cuda builds for Windows, but it's not yet totally ready...
OK, thank you for letting me know.
acasta69
Developer
Posts: 472 Joined: Tue Jan 09, 2018 3:45 pm
Location: Italy
Post
by acasta69 » Fri Apr 24, 2020 9:54 am
At the moment the CUDA build is working for me and also on Azure.
Could you please try again?
Support LuxCoreRender project with salts and bounties
Windows 10 64 bits, i7-4770 3.4 GHz, RAM 16 GB, GTX 970 4GB v445.87