Luxcore always does recompile openCL kernel macOS after macOS restart with the same scene
Windows is fine.
Any idea why for the mac this always needs to be redone?
The compile takes very long and students on macs would be quite turned off by this.
recompile openCL kernel macOS after restart
Forum rules
Please upload a testscene that allows developers to reproduce the problem, and attach some images.
Please upload a testscene that allows developers to reproduce the problem, and attach some images.
Re: recompile openCL kernel macOS after restart
Maybe this is some specially configured macOS that wipes itself after restarts?
Or maybe just the kernel cache is created in a directory that is wiped?
Or maybe just the kernel cache is created in a directory that is wiped?
Re: recompile openCL kernel macOS after restart
/tmp ? Some unix system usually delete everything /tmp after a boot ? Does MacOS delete everything after a reboot ?
Other possible problem may something related write permissions.
Re: recompile openCL kernel macOS after restart
The code (https://github.com/LuxCoreRender/LuxCor ... l.cpp#L213) uses boost::filesystem::temp_directory_path(): it is unclear what it is used on MacOS but it may be /tmp.
Re: recompile openCL kernel macOS after restart
yeah after each macOS restart it is gone - just tested it again.
Windows is fine.
Windows is fine.
Re: recompile openCL kernel macOS after restart
I just find it weird that no other macOS user has ever reported this problem.
That's why I'm wondering if those school/university machines are configured differently than normal (at least I assume we are talking about some kind of school/university machines here, or is it also happening on your personal machine?).
That's why I'm wondering if those school/university machines are configured differently than normal (at least I assume we are talking about some kind of school/university machines here, or is it also happening on your personal machine?).
Re: recompile openCL kernel macOS after restart
I'm out of the town at the moment I will be back in few days, this should be easy to fix. I can make it configurable to solve the problem at root: just something you can set in BlendLuxCore preferences.
Re: recompile openCL kernel macOS after restart
MacOS OpenCL/CUDA kernel cache directory is now created in user home directory (as "luxcorerender.org") to avoid to be erased when in /tmp.
I don't have a Mac to test the new code (but it is Unix code and it works on Linux).
I don't have a Mac to test the new code (but it is Unix code and it works on Linux).
Re: recompile openCL kernel macOS after restart
Well guess i never restart my mac.. i'll test the patch
I recompiled so many times so i guess it was normal for me to rebuild the cache every time
I recompiled so many times so i guess it was normal for me to rebuild the cache every time
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
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
Re: recompile openCL kernel macOS after restart
All seems to work here i'm not able to reproduce the problem with older build ... but it should work as expected now.
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
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