Mac OS

Discussion related to the LuxCore functionality, implementations and API.
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Mac OS

Post by B.Y.O.B. »

Done, thanks for the reminder.
poopies
Posts: 3
Joined: Thu Jan 31, 2019 2:20 pm

Re: Mac OS

Post by poopies »

jensverwiebe wrote: Sat Jan 20, 2018 4:26 pm
AndreD wrote: Fri Jan 19, 2018 6:44 pm Hi,
I am just trying the first mac version,
I get this error:

Code: Select all

Traceback (most recent call last):
  File "/private/var/folders/qr/g00zj9_91m3_xs4l5c5lvykc0000gn/T/AppTranslocation/93244D79-C0F7-42A3-BE5D-378F82ED9B17/d/blender.app/Contents/Resources/2.79/scripts/modules/addon_utils.py", line 331, in enable
    mod = __import__(module_name)
  File "/Users/andredupke/Library/Application Support/Blender/2.79/scripts/addons/BlendLuxCore/__init__.py", line 2, in <module>
    from .bin import pyluxcore
ImportError: dlopen(/Users/andredupke/Library/Application Support/Blender/2.79/scripts/addons/BlendLuxCore/bin/pyluxcore.so, 2): Library not loaded: @rpath/libembree.2.dylib
  Referenced from: /Users/andredupke/Library/Application Support/Blender/2.79/scripts/addons/BlendLuxCore/bin/pyluxcore.so
  Reason: image not found
Thats what i immediately thought when seeing the new embree libs come with @rpath id: rpath is a wonky thing on macOS, i made them loader_path now, works more reliable.

Jens
PLEASE TELL ME HOW YOU FIXED IT!
robbrown
Developer
Developer
Posts: 63
Joined: Mon Sep 03, 2018 1:04 am

Re: Mac OS

Post by robbrown »

Is this still happening? The rpath/loader path is because of Blender’s self contained Python and addon location. I’m happy to try and figure out another solution if it’s causing problems.
User avatar
FarbigeWelt
Donor
Donor
Posts: 1046
Joined: Sun Jul 01, 2018 12:07 pm
Location: Switzerland
Contact:

Re: Mac OS, openCl

Post by FarbigeWelt »

Today, I run a few tests with openCl. Sample count and speed of GPU are an not as i expected them.
Attachments
CPU and openCL
CPU and openCL
openCL
openCL
CPU
CPU
Light and Word designing Creator - www.farbigewelt.ch - aka quantenkristall || #luxcorerender
MacBook Air with M1
epilectrolytics
Donor
Donor
Posts: 790
Joined: Thu Oct 04, 2018 6:06 am

Re: Mac OS, openCl

Post by epilectrolytics »

FarbigeWelt wrote: Sat Feb 02, 2019 2:58 pm Today, I run a few tests with openCl. Sample count and speed of GPU are an not as i expected them.
That's your 2010 iMac?
I guess if the GPU is weak there is no point in using it:
It will need CPU power to feed it which in itself would have contributed more to the render than the GPU it supports.
You could launch Activity Monitor and check how much CPU power is needed while rendering on the GPU only.

EDIT: Just spying at your dock it seems a lot of apps are open.
Now when testing render performance I would close all other apps, also networks.
Again Activity Monitor reveals if any background process is eating away CPU capacity.
User avatar
FarbigeWelt
Donor
Donor
Posts: 1046
Joined: Sun Jul 01, 2018 12:07 pm
Location: Switzerland
Contact:

Re: Mac OS, openCl

Post by FarbigeWelt »

epilectrolytics wrote: Sat Feb 02, 2019 5:56 pm
EDIT: Just spying at your dock it seems a lot of apps are open.
Now when testing render performance I would close all other apps, also networks.
Again Activity Monitor reveals if any background process is eating away CPU capacity.
I had the same thoughts, and closed all other apps but without change. I will check with luxmark if it shows the same behaviour.
Based on data sheets I would expect different results from the openCL GPU render. We will see.
Light and Word designing Creator - www.farbigewelt.ch - aka quantenkristall || #luxcorerender
MacBook Air with M1
User avatar
FarbigeWelt
Donor
Donor
Posts: 1046
Joined: Sun Jul 01, 2018 12:07 pm
Location: Switzerland
Contact:

Re: Mac OS, openCl

Post by FarbigeWelt »

epilectrolytics wrote: Sat Feb 02, 2019 5:56 pm That's your 2010 iMac?
I guess if the GPU is weak there is no point in using it:
Yes, it is my 2010 iMac.

You may have guessed wrongly.. :lol:

Lux Ball Scene
openCL 1482
CPU 1152
CPU and GPU 2608
Lux Ball_openCL_1482_OS X 13.1.6_HD 5750 625 MHz 1.0 GB
Lux Ball_openCL_1482_OS X 13.1.6_HD 5750 625 MHz 1.0 GB
Lux Ball_CPU_1152_OS X 13.1.6_i7 2.93 GHz
Lux Ball_CPU_1152_OS X 13.1.6_i7 2.93 GHz
Lux Ball_CPU and GPU_2608_OS X 13.1.6
Lux Ball_CPU and GPU_2608_OS X 13.1.6
Light and Word designing Creator - www.farbigewelt.ch - aka quantenkristall || #luxcorerender
MacBook Air with M1
epilectrolytics
Donor
Donor
Posts: 790
Joined: Thu Oct 04, 2018 6:06 am

Re: Mac OS, openCl

Post by epilectrolytics »

FarbigeWelt wrote: Sat Feb 02, 2019 10:07 pm You may have guessed wrongly.. :lol:
Well I'm glad was wrong :D

Next try: Probably It's the 1GB GPU Ram vs 24GB CPU Ram that's causing the weird results of the former test.
robbrown
Developer
Developer
Posts: 63
Joined: Mon Sep 03, 2018 1:04 am

Re: Mac OS

Post by robbrown »

Have you noticed if it's spending forever on the OpenCL Kernel building? I was having issues where depending on how complicated the Scene the OpenCL kernels took forever and that's what made it worse.
User avatar
FarbigeWelt
Donor
Donor
Posts: 1046
Joined: Sun Jul 01, 2018 12:07 pm
Location: Switzerland
Contact:

Re: Mac OS

Post by FarbigeWelt »

robbrown wrote: Sun Feb 03, 2019 8:35 am Have you noticed if it's spending forever on the OpenCL Kernel building? I was having issues where depending on how complicated the Scene the OpenCL kernels took forever and that's what made it worse.
No, I have not noticed it at all.
Look at these compilation times.

Code: Select all

[LuxCore][604.525] Starting 1 OpenCL render threads
..
[LuxCore][604.654] [PathOCLBaseRenderThread::0] Compiling kernels 
[LuxCore][604.668] [PathOCLBaseRenderThread::0] Kernels cached
[LuxCore][604.668] [PathOCLBaseRenderThread::0] Compiling Film_Clear Kernel
[LuxCore][604.668] [PathOCLBaseRenderThread::0] Compiling InitSeed Kernel
[LuxCore][604.668] [PathOCLBaseRenderThread::0] Compiling Init Kernel
[LuxCore][604.669] [PathOCLBaseRenderThread::0] Compiling AdvancePaths_MK_RT_NEXT_VERTEX Kernel
[LuxCore][604.669] [PathOCLBaseRenderThread::0] Compiling AdvancePaths_MK_HIT_NOTHING Kernel
[LuxCore][604.669] [PathOCLBaseRenderThread::0] Compiling AdvancePaths_MK_HIT_OBJECT Kernel
[LuxCore][604.669] [PathOCLBaseRenderThread::0] Compiling AdvancePaths_MK_RT_DL Kernel
[LuxCore][604.669] [PathOCLBaseRenderThread::0] Compiling AdvancePaths_MK_DL_ILLUMINATE Kernel
[LuxCore][604.669] [PathOCLBaseRenderThread::0] Compiling AdvancePaths_MK_DL_SAMPLE_BSDF Kernel
[LuxCore][604.669] [PathOCLBaseRenderThread::0] Compiling AdvancePaths_MK_GENERATE_NEXT_VERTEX_RAY Kernel
[LuxCore][604.669] [PathOCLBaseRenderThread::0] Compiling AdvancePaths_MK_SPLAT_SAMPLE Kernel
[LuxCore][604.669] [PathOCLBaseRenderThread::0] Compiling AdvancePaths_MK_NEXT_SAMPLE Kernel
[LuxCore][604.669] [PathOCLBaseRenderThread::0] Compiling AdvancePaths_MK_GENERATE_CAMERA_RAY Kernel
[b][LuxCore][604.669] [PathOCLBaseRenderThread::0] Kernels compilation time: 19ms[/b]
[LuxCore][604.686] Starting 0 native render threads
[LuxCore][604.707] Film OpenCL image pipeline
[LuxCore][604.707] Film OpenCL Device used: ATI Radeon HD 5750 Intersect
[LuxCore][604.707]   Device OpenCL version: OpenCL 1.2 
[LuxRays][605.276] [Device ATI Radeon HD 5750 Intersect] IMAGEPIPELINE buffer size: 22500Kbytes
[LuxRays][605.276] [Device ATI Radeon HD 5750 Intersect] Merge buffer size: 30000Kbytes
[LuxCore][605.276] [MergeSampleBuffersOCL] Defined symbols: -D LUXRAYS_OPENCL_KERNEL -D SLG_OPENCL_KERNEL
[LuxCore][605.276] [MergeSampleBuffersOCL] Compiling kernels 
[LuxCore][605.277] [MergeSampleBuffersOCL] Kernels cached
[LuxCore][605.277] [MergeSampleBuffersOCL] Compiling Film_MergeBufferInitialize Kernel
[LuxCore][605.277] [MergeSampleBuffersOCL] Compiling Film_MergeRADIANCE_PER_PIXEL_NORMALIZED Kernel
[LuxCore][605.277] [MergeSampleBuffersOCL] Compiling Film_MergeRADIANCE_PER_SCREEN_NORMALIZED Kernel
[LuxCore][605.277] [MergeSampleBuffersOCL] Compiling Film_MergeBufferFinalize Kernel
[b][LuxCore][605.277] [MergeSampleBuffersOCL] Kernels compilation time: 1ms[/b]
[LuxRays][605.816] [Device ATI Radeon HD 5750 Intersect] Accumulation buffer size: 175Kbytes
[LuxCore][605.816] [Reinhard02ToneMap] Defined symbols: -D LUXRAYS_OPENCL_KERNEL -D SLG_OPENCL_KERNEL
[LuxCore][605.817] [Reinhard02ToneMap] Compiling kernels 
[LuxCore][605.817] [Reinhard02ToneMap] Kernels cached
[LuxCore][605.817] [Reinhard02ToneMap] Compiling OpRGBValuesReduce Kernel
[LuxCore][605.817] [Reinhard02ToneMap] Compiling OpRGBValueAccumulate Kernel
[LuxCore][605.817] [Reinhard02ToneMap] Compiling Reinhard02ToneMap_Apply Kernel
[b][LuxCore][605.817] [Reinhard02ToneMap] Kernels compilation time: 0ms[/b]
Light and Word designing Creator - www.farbigewelt.ch - aka quantenkristall || #luxcorerender
MacBook Air with M1
Post Reply