3 Replies Latest reply on Jan 27, 2012 3:16 AM by homemadejam

    OpenCL SDK on AMD Fusion Device: Treat GPU and CPU as Separate Devices?


      Is is possible to enumerate the GPU and the CPU as separate devices under the AMD APP SDK? I have the ATI Catalyst driver installed as well as the latest SDK however it is still appearing as a single device.

      Is there anything else that needs doing? Has my ATI install gone awry?

      Latest 64-Bit ubuntu - AMD APU A3850



        • OpenCL SDK on AMD Fusion Device: Treat GPU and CPU as Separate Devices?

          Try using:

          "export COMPUTE=:0" then run the clinfo from the same terminal.

            • OpenCL SDK on AMD Fusion Device: Treat GPU and CPU as Separate Devices?

              hmm doesn't seem to have changed anything,  I receive the following output if that's any help.

              *EDIT* Reread the export code more carefully.


              Platform Name: AMD Accelerated Parallel Processing Number of devices: 1 Device Type: CL_DEVICE_TYPE_CPU Device ID: 4098 Max compute units: 4 Max work items dimensions: 3 Max work items[0]: 1024 Max work items[1]: 1024 Max work items[2]: 1024 Max work group size: 1024 Preferred vector width char: 16 Preferred vector width short: 8 Preferred vector width int: 4 Preferred vector width long: 2 Preferred vector width float: 4 Preferred vector width double: 0 Native vector width char: 16 Native vector width short: 8 Native vector width int: 4 Native vector width long: 2 Native vector width float: 4 Native vector width double: 0 Max clock frequency: 800Mhz Address bits: 64 Max memory allocation: 4077477888 Image support: Yes Max number of images read arguments: 128 Max number of images write arguments: 8 Max image 2D width: 8192 Max image 2D height: 8192 Max image 3D width: 2048 Max image 3D height: 2048 Max image 3D depth: 2048 Max samplers within kernel: 16 Max size of kernel argument: 4096 Alignment (bits) of base address: 1024 Minimum alignment (bytes) for any datatype: 128 Single precision floating point capability Denorms: Yes Quiet NaNs: Yes Round to nearest even: Yes Round to zero: Yes Round to +ve and infinity: Yes IEEE754-2008 fused multiply-add: No Cache type: Read/Write Cache line size: 64 Cache size: 65536 Global memory size: 16309911552 Constant buffer size: 65536 Max number of constant args: 8 Local memory type: Global Local memory size: 32768 Kernel Preferred work group size multiple: 1 Error correction support: 0 Unified memory for Host and Device: 1 Profiling timer resolution: 1 Device endianess: Little Available: Yes Compiler available: Yes Execution capabilities: Execute OpenCL kernels: Yes Execute native function: Yes Queue properties: Out-of-Order: No Profiling : Yes Platform ID: 0x7f5e8c5d2060 Name: AMD A8-3850 APU with Radeon(tm) HD Graphics Vendor: AuthenticAMD Device OpenCL C version: OpenCL C 1.1 Driver version: 2.0 Profile: FULL_PROFILE Version: OpenCL 1.1 AMD-APP-SDK-v2.5 (684.213) Extensions: cl_khr_fp64 cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_vec3 cl_amd_media_ops cl_amd_popcnt cl_amd_printf

            • Re: OpenCL SDK on AMD Fusion Device: Treat GPU and CPU as Separate Devices?

              As a follow up for future reference. The problem was that I wasn't running the OpenCL programs as the same user who was using the Xsession as per this thread: http://devgurus.amd.com/message/1171058#1171058 .