Mac OS

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

Re: Mac OS

Post by B.Y.O.B. » Fri Jan 25, 2019 9:54 am

Done, thanks for the reminder.
Support LuxCoreRender project with salts and bounties

poopies
Posts: 3
Joined: Thu Jan 31, 2019 2:20 pm

Re: Mac OS

Post by poopies » Thu Jan 31, 2019 2:22 pm

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 » Thu Jan 31, 2019 7:41 pm

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: 550
Joined: Sun Jul 01, 2018 12:07 pm
Location: Switzerland
Contact:

Re: Mac OS, openCl

Post by FarbigeWelt » 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.
Attachments
OS X 13.1.6_CPU_GPU_14min_depth 20.jpeg
CPU and openCL
OS X 13.1.6_openCL_HD 5750_depth 20.jpeg
openCL
OS X 13.1.6_CPU_i7 2.93 GHz_depth 20.jpeg
CPU
160.8 | 42.8 (10.7) Gfp / Windows 10 Pro, intel i7 4770K@3.5, 32 GB | AMD R9 290x+R9 390x, 4 GB
17.3 | 19.0 ( 4.7) Gfp / macOS X 13.6, iMac 27'', 2010, intel i7 870@2.93, 24 GB | ATI Radeon HD 5750, 1 GB
#luxcorerender | Gfp = SFFT Gflops

User avatar
epilectrolytics
Donor
Donor
Posts: 272
Joined: Thu Oct 04, 2018 6:06 am

Re: Mac OS, openCl

Post by epilectrolytics » Sat Feb 02, 2019 5:56 pm

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.
MBPro 15" 16GB i7-4850HQ GT750M, MacOS 10.13.6 _________________Win10Pro PC 16GB Ryzen 2700X, RTX 2070, GTX 1060

User avatar
FarbigeWelt
Donor
Donor
Posts: 550
Joined: Sun Jul 01, 2018 12:07 pm
Location: Switzerland
Contact:

Re: Mac OS, openCl

Post by FarbigeWelt » Sat Feb 02, 2019 8:19 pm

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.
160.8 | 42.8 (10.7) Gfp / Windows 10 Pro, intel i7 4770K@3.5, 32 GB | AMD R9 290x+R9 390x, 4 GB
17.3 | 19.0 ( 4.7) Gfp / macOS X 13.6, iMac 27'', 2010, intel i7 870@2.93, 24 GB | ATI Radeon HD 5750, 1 GB
#luxcorerender | Gfp = SFFT Gflops

User avatar
FarbigeWelt
Donor
Donor
Posts: 550
Joined: Sun Jul 01, 2018 12:07 pm
Location: Switzerland
Contact:

Re: Mac OS, openCl

Post by FarbigeWelt » Sat Feb 02, 2019 10:07 pm

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.jpg
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.jpg
Lux Ball_CPU_1152_OS X 13.1.6_i7 2.93 GHz
Lux Ball_CPU and GPU_2608_OS X 13.1.6.jpg
Lux Ball_CPU and GPU_2608_OS X 13.1.6
160.8 | 42.8 (10.7) Gfp / Windows 10 Pro, intel i7 4770K@3.5, 32 GB | AMD R9 290x+R9 390x, 4 GB
17.3 | 19.0 ( 4.7) Gfp / macOS X 13.6, iMac 27'', 2010, intel i7 870@2.93, 24 GB | ATI Radeon HD 5750, 1 GB
#luxcorerender | Gfp = SFFT Gflops

User avatar
epilectrolytics
Donor
Donor
Posts: 272
Joined: Thu Oct 04, 2018 6:06 am

Re: Mac OS, openCl

Post by epilectrolytics » Sun Feb 03, 2019 7:40 am

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.
MBPro 15" 16GB i7-4850HQ GT750M, MacOS 10.13.6 _________________Win10Pro PC 16GB Ryzen 2700X, RTX 2070, GTX 1060

robbrown
Developer
Developer
Posts: 63
Joined: Mon Sep 03, 2018 1:04 am

Re: Mac OS

Post by robbrown » 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.

User avatar
FarbigeWelt
Donor
Donor
Posts: 550
Joined: Sun Jul 01, 2018 12:07 pm
Location: Switzerland
Contact:

Re: Mac OS

Post by FarbigeWelt » Sun Feb 03, 2019 5:37 pm

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]
160.8 | 42.8 (10.7) Gfp / Windows 10 Pro, intel i7 4770K@3.5, 32 GB | AMD R9 290x+R9 390x, 4 GB
17.3 | 19.0 ( 4.7) Gfp / macOS X 13.6, iMac 27'', 2010, intel i7 870@2.93, 24 GB | ATI Radeon HD 5750, 1 GB
#luxcorerender | Gfp = SFFT Gflops

Post Reply