How to recompile to support AMD OpenCL on Mac?

Compiling, libraries, modules, coding guidelines and porting

Moderators: jesterKing, stiv

Acrossfy
Posts: 1
Joined: Fri Jul 19, 2013 11:01 pm

How to recompile to support AMD OpenCL on Mac?

Postby Acrossfy » Fri Jul 19, 2013 11:31 pm

Hi, i have a AMD HD7950 GPU and I want use Cycles Render in OpenCL mode on my OS X system.
oclinfo shows following log:

Code: Select all

[Device 2]
   Name:          ATI Radeon HD 7950 Compute Engine
   Vendor:       AMD
   Type:          GPU
   Device Version:    OpenCL 1.1
   Driver Version:    1.0
   Compute Units:       32
   Work Group Size:    1024
   Clock:          1000 MHz
   Global Memory:       1536 MB
   Local Memory:       32 KB
   Cache Size:       0 KB
   Cache Line Size:    0 Bytes
   Available:       Yes
   Double-Precision:    No
   Extensions:
            cl_APPLE_SetMemObjectDestructor
            cl_APPLE_ContextLoggingFunctions
            cl_APPLE_clut
            cl_APPLE_query_kernel_names
            cl_APPLE_gl_sharing
            cl_khr_gl_event
            cl_khr_global_int32_base_atomics
            cl_khr_global_int32_extended_atomics
            cl_khr_local_int32_base_atomics
            cl_khr_local_int32_extended_atomics


But Blender can use only CPU mode. I heard i need to recompile Blender with edited kernel_types.h and device_opencl.cpp files. Are there any additional tips? What exactly i must edit?

Thanks in advance.

P.S. I'm programmer (but on Java)

Return to “Coding Blender”

Who is online

Users browsing this forum: No registered users and 0 guests