OpenCL Magma build issues

Open discussion for MAGMA

OpenCL Magma build issues

Postby aramach4 » Mon Mar 24, 2014 10:14 am

Hello,

I was having trouble with clMAGMA compilation with CL_MAGMA_RT.cpp

I commented out a couple of offending lines which seemed to be error reporting lines:
printf("Error: clGetDeviceIDs at %d in file %s!\n", __LINE__, __FILE__);
printf ("Error: clCreateProgramWithSource at %d in %s\n", __LINE__, __FILE__);

The compilation seems to be clean now - no errors are reported. But make still has exit status 1. And I am able to find only libclmagma.a and not libclmagmablas.a.

I am using ACML 4.4 and clAmdBlas 1.10.321. I see that others in the forum (and the example make file) are referring to clAmdBlas 1.11 - but I can't seem to find where to get that from.

Could you give any pointers to help figure out the compilation problems?

Thank you,
Anand
aramach4
 
Posts: 4
Joined: Mon Mar 24, 2014 9:45 am

Re: OpenCL Magma build issues

Postby mgates3 » Mon Mar 24, 2014 1:11 pm

I don't exactly understand, why did you commented those two lines out? Can you please post the output of make BEFORE you commented out those two lines, and how this changed AFTER commenting out those two lines.
-mark
mgates3
 
Posts: 427
Joined: Fri Jan 06, 2012 2:13 pm

Re: OpenCL Magma build issues

Postby aramach4 » Mon Mar 24, 2014 3:37 pm

Mark, thanks for the quick response.

Here is the error I got with the original source:-

g++ -fPIC -o clcompile clcompile.o CL_MAGMA_RT.o \
-L/opt/acml4.4.0/gfortran64/lib -L/opt/acml4.4.0/gfortran64_mp/lib -L/opt/clAmdBlas-1.10.321/lib64 -L/opt/AMDAPP/lib/x86_64 -lacml_mp -lacml_mv -lcblas -lclAmdBlas -lOpenCL
./clcompile zauxiliary.cl
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Error: clCreateProgramWithSource at 1041 in CL_MAGMA_RT.cpp
./clcompile zgemm_reduce.cl
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Error: clCreateProgramWithSource at 1041 in CL_MAGMA_RT.cpp
./clcompile zlacpy.cl
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Error: clCreateProgramWithSource at 1041 in CL_MAGMA_RT.cpp
./clcompile zlag2c.cl
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Error: clCreateProgramWithSource at 1041 in CL_MAGMA_RT.cpp
./clcompile clag2z.cl
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Error: clCreateProgramWithSource at 1041 in CL_MAGMA_RT.cpp
./clcompile zlarfbx.cl
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Error: clCreateProgramWithSource at 1041 in CL_MAGMA_RT.cpp
./clcompile zlarfgx-v2.cl
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Error: clCreateProgramWithSource at 1041 in CL_MAGMA_RT.cpp
./clcompile zlarfx.cl
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Error: clCreateProgramWithSource at 1041 in CL_MAGMA_RT.cpp
./clcompile dznrm2.cl
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Error: clCreateProgramWithSource at 1041 in CL_MAGMA_RT.cpp
./clcompile zpermute-v2.cl
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Error: clCreateProgramWithSource at 1041 in CL_MAGMA_RT.cpp
./clcompile zswap.cl
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Error: clCreateProgramWithSource at 1041 in CL_MAGMA_RT.cpp
./clcompile ztranspose-v2.cl
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Error: clCreateProgramWithSource at 1041 in CL_MAGMA_RT.cpp
./clcompile ztranspose.cl
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Error: clCreateProgramWithSource at 1041 in CL_MAGMA_RT.cpp
./clcompile ztranspose_inplace.cl
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Error: clCreateProgramWithSource at 1041 in CL_MAGMA_RT.cpp
./clcompile cauxiliary.cl
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Error: clCreateProgramWithSource at 1041 in CL_MAGMA_RT.cpp
./clcompile cgemm_reduce.cl
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Error: clCreateProgramWithSource at 1041 in CL_MAGMA_RT.cpp
./clcompile clacpy.cl
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Error: clCreateProgramWithSource at 1041 in CL_MAGMA_RT.cpp
./clcompile clarfbx.cl
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Error: clCreateProgramWithSource at 1041 in CL_MAGMA_RT.cpp
./clcompile clarfgx-v2.cl
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Error: clCreateProgramWithSource at 1041 in CL_MAGMA_RT.cpp
./clcompile clarfx.cl
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Error: clCreateProgramWithSource at 1041 in CL_MAGMA_RT.cpp
./clcompile scnrm2.cl
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Error: clCreateProgramWithSource at 1041 in CL_MAGMA_RT.cpp
./clcompile cpermute-v2.cl
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Error: clCreateProgramWithSource at 1041 in CL_MAGMA_RT.cpp
./clcompile cswap.cl
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Error: clCreateProgramWithSource at 1041 in CL_MAGMA_RT.cpp
./clcompile ctranspose-v2.cl
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Error: clCreateProgramWithSource at 1041 in CL_MAGMA_RT.cpp
./clcompile ctranspose.cl
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Error: clCreateProgramWithSource at 1041 in CL_MAGMA_RT.cpp
./clcompile ctranspose_inplace.cl
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Error: clCreateProgramWithSource at 1041 in CL_MAGMA_RT.cpp
./clcompile dauxiliary.cl
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Error: clCreateProgramWithSource at 1041 in CL_MAGMA_RT.cpp
./clcompile dgemm_reduce.cl
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Error: clCreateProgramWithSource at 1041 in CL_MAGMA_RT.cpp
./clcompile dlacpy.cl
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Error: clCreateProgramWithSource at 1041 in CL_MAGMA_RT.cpp
./clcompile dlag2s.cl
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Error: clCreateProgramWithSource at 1041 in CL_MAGMA_RT.cpp
./clcompile slag2d.cl
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Error: clCreateProgramWithSource at 1041 in CL_MAGMA_RT.cpp
./clcompile dlarfbx.cl
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Error: clCreateProgramWithSource at 1041 in CL_MAGMA_RT.cpp
./clcompile dlarfgx-v2.cl
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Error: clCreateProgramWithSource at 1041 in CL_MAGMA_RT.cpp
./clcompile dlarfx.cl
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Error: clCreateProgramWithSource at 1041 in CL_MAGMA_RT.cpp
./clcompile dnrm2.cl
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Error: clCreateProgramWithSource at 1041 in CL_MAGMA_RT.cpp
./clcompile dpermute-v2.cl
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Error: clCreateProgramWithSource at 1041 in CL_MAGMA_RT.cpp
./clcompile dswap.cl
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Error: clCreateProgramWithSource at 1041 in CL_MAGMA_RT.cpp
./clcompile dtranspose-v2.cl
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Error: clCreateProgramWithSource at 1041 in CL_MAGMA_RT.cpp
./clcompile dtranspose.cl
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Error: clCreateProgramWithSource at 1041 in CL_MAGMA_RT.cpp
./clcompile dtranspose_inplace.cl
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Error: clCreateProgramWithSource at 1041 in CL_MAGMA_RT.cpp
./clcompile sauxiliary.cl
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Error: clCreateProgramWithSource at 1041 in CL_MAGMA_RT.cpp
./clcompile sgemm_reduce.cl
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Error: clCreateProgramWithSource at 1041 in CL_MAGMA_RT.cpp
./clcompile slacpy.cl
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Error: clCreateProgramWithSource at 1041 in CL_MAGMA_RT.cpp
./clcompile slarfbx.cl
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Error: clCreateProgramWithSource at 1041 in CL_MAGMA_RT.cpp
./clcompile slarfgx-v2.cl
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Error: clCreateProgramWithSource at 1041 in CL_MAGMA_RT.cpp
./clcompile slarfx.cl
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Error: clCreateProgramWithSource at 1041 in CL_MAGMA_RT.cpp
./clcompile snrm2.cl
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Error: clCreateProgramWithSource at 1041 in CL_MAGMA_RT.cpp
./clcompile spermute-v2.cl
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Error: clCreateProgramWithSource at 1041 in CL_MAGMA_RT.cpp
./clcompile sswap.cl
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Error: clCreateProgramWithSource at 1041 in CL_MAGMA_RT.cpp
./clcompile stranspose-v2.cl
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Error: clCreateProgramWithSource at 1041 in CL_MAGMA_RT.cpp
./clcompile stranspose.cl
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Error: clCreateProgramWithSource at 1041 in CL_MAGMA_RT.cpp
./clcompile stranspose_inplace.cl
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Initializing...
Error: clGetDeviceIDs at 782 in file CL_MAGMA_RT.cpp!
Error: clCreateProgramWithSource at 1041 in CL_MAGMA_RT.cpp

When I comment out lines 782 and 1041, I do not get these errors, but I still do not have libclmagmablas.a in lib, but only libclmagma.a. I will take back my statement about the exit status of make.

Attaching the make.inc file and both error logs (one without the error messages) to be identified by name.

Thanks,
Anand
Attachments
attachments.tar.gz
contains make.inc and error logs.
(21.67 KiB) Downloaded 28 times
aramach4
 
Posts: 4
Joined: Mon Mar 24, 2014 9:45 am

Re: OpenCL Magma build issues

Postby mgates3 » Mon Mar 24, 2014 3:53 pm

The errors still occur, they simply aren't reported to you, which is the purpose of those two print statements.
It appears that for some reason, when compiling, it doesn't find any OpenCL GPU devices.
Can you give some details about your system -- OS, CPU, GPU, AMD APP version -- using clinfo if available. It gives output like below. In particular, you should have a Device Type CL_DEVICE_TYPE_GPU.
-mark

Code: Select all
thog ~> clinfo
Number of platforms:             1
  Platform Profile:             FULL_PROFILE
  Platform Version:             OpenCL 1.2 AMD-APP (1348.5)
  Platform Name:             AMD Accelerated Parallel Processing
  Platform Vendor:             Advanced Micro Devices, Inc.
  Platform Extensions:             cl_khr_icd cl_amd_event_callback cl_amd_offline_devices


  Platform Name:             AMD Accelerated Parallel Processing
Number of devices:             2
  Device Type:                CL_DEVICE_TYPE_GPU
  Device ID:                4098
  Board name:                AMD Radeon HD 7900 Series
  Device Topology:             PCI[ B#3, D#0, F#0 ]
  Max compute units:             32
  Max work items dimensions:          3
    Max work items[0]:             256
    Max work items[1]:             256
    Max work items[2]:             256
  Max work group size:             256
  Preferred vector width char:          4
  Preferred vector width short:          2
  Preferred vector width int:          1
  Preferred vector width long:          1
  Preferred vector width float:          1
  Preferred vector width double:       1
  Native vector width char:          4
  Native vector width short:          2
  Native vector width int:          1
  Native vector width long:          1
  Native vector width float:          1
  Native vector width double:          1
  Max clock frequency:             1000Mhz
  Address bits:                32
  Max memory allocation:          1073741824
  Image support:             Yes
  Max number of images read arguments:       128
  Max number of images write arguments:       8
  Max image 2D width:             16384
  Max image 2D height:             16384
  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:          1024
  Alignment (bits) of base address:       2048
  Minimum alignment (bytes) for any datatype:    128
  Single precision floating point capability
    Denorms:                No
    Quiet NaNs:                Yes
    Round to nearest even:          Yes
    Round to zero:             Yes
    Round to +ve and infinity:          Yes
    IEEE754-2008 fused multiply-add:       Yes
  Cache type:                Read/Write
  Cache line size:             64
  Cache size:                16384
  Global memory size:             3062890496
  Constant buffer size:             65536
  Max number of constant args:          8
  Local memory type:             Scratchpad
  Local memory size:             32768
  Kernel Preferred work group size multiple:    64
  Error correction support:          0
  Unified memory for Host and Device:       0
  Profiling timer resolution:          1
  Device endianess:             Little
  Available:                Yes
  Compiler available:             Yes
  Execution capabilities:            
    Execute OpenCL kernels:          Yes
    Execute native function:          No
  Queue properties:            
    Out-of-Order:             No
    Profiling :                Yes
  Platform ID:                0x00007facf083c380
  Name:                   Tahiti
  Vendor:                Advanced Micro Devices, Inc.
  Device OpenCL C version:          OpenCL C 1.2
  Driver version:             1348.5 (VM)
  Profile:                FULL_PROFILE
  Version:                OpenCL 1.2 AMD-APP (1348.5)
  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_3d_image_writes cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_atomic_counters_32 cl_amd_device_attribute_query cl_amd_vec3 cl_amd_printf cl_amd_media_ops cl_amd_media_ops2 cl_amd_popcnt cl_khr_image2d_from_buffer


  Device Type:                CL_DEVICE_TYPE_CPU
  Device ID:                4098
  Board name:               
  Max compute units:             64
  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:          8
  Preferred vector width double:       4
  Native vector width char:          16
  Native vector width short:          8
  Native vector width int:          4
  Native vector width long:          2
  Native vector width float:          8
  Native vector width double:          4
  Max clock frequency:             1400Mhz
  Address bits:                64
  Max memory allocation:          33795939328
  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:       Yes
  Cache type:                Read/Write
  Cache line size:             64
  Cache size:                16384
  Global memory size:             135183757312
  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:                0x00007facf083c380
  Name:                   AMD Opteron(tm) Processor 6380
  Vendor:                AuthenticAMD
  Device OpenCL C version:          OpenCL C 1.2
  Driver version:             1348.5 (sse2,avx,fma4)
  Profile:                FULL_PROFILE
  Version:                OpenCL 1.2 AMD-APP (1348.5)
  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_3d_image_writes cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_vec3 cl_amd_printf cl_amd_media_ops cl_amd_media_ops2 cl_amd_popcnt
mgates3
 
Posts: 427
Joined: Fri Jan 06, 2012 2:13 pm

Re: OpenCL Magma build issues

Postby aramach4 » Mon Mar 24, 2014 5:33 pm

OS is Ubuntu:
Linux anandr-MacBookPro 3.8.0-31-generic #46-Ubuntu SMP Tue Sep 10 20:03:44 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

I have CL_DEVICE_TYPE_GPU for device type. The result of clinfo is given below.

Code: Select all
Number of platforms:             1
  Platform Profile:             FULL_PROFILE
  Platform Version:             OpenCL 1.2 AMD-APP (1214.3)
  Platform Name:             AMD Accelerated Parallel Processing
  Platform Vendor:             Advanced Micro Devices, Inc.
  Platform Extensions:             cl_khr_icd cl_amd_event_callback cl_amd_offline_devices


  Platform Name:             AMD Accelerated Parallel Processing
Number of devices:             1
  Device Type:                CL_DEVICE_TYPE_CPU
  Device ID:                4098
  Board name:               
  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:          8
  Preferred vector width double:       4
  Native vector width char:          16
  Native vector width short:          8
  Native vector width int:          4
  Native vector width long:          2
  Native vector width float:          8
  Native vector width double:          4
  Max clock frequency:             1200Mhz
  Address bits:                64
  Max memory allocation:          2147483648
  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:       Yes
  Cache type:                Read/Write
  Cache line size:             64
  Cache size:                32768
  Global memory size:             4048068608
  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:                0x00007f8f1e4f7fc0
  Name:                   Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
  Vendor:                GenuineIntel
  Device OpenCL C version:          OpenCL C 1.2
  Driver version:             1214.3 (sse2,avx)
  Profile:                FULL_PROFILE
  Version:                OpenCL 1.2 AMD-APP (1214.3)
  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_3d_image_writes cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_vec3 cl_amd_printf cl_amd_media_ops cl_amd_media_ops2 cl_amd_popcnt
aramach4
 
Posts: 4
Joined: Mon Mar 24, 2014 9:45 am

Re: OpenCL Magma build issues

Postby mgates3 » Tue Mar 25, 2014 3:04 pm

I only see CL_DEVICE_TYPE_CPU in your clinfo (that's your Intel Core i5), not CL_DEVICE_TYPE_GPU. Do you have a GPU installed? What kind? For some reason, OpenCL is not seeing it. That needs to be fixed before compiling & installing clMAGMA. There are usually two OpenCL devices in clinfo -- the CPU and the GPU.
-mark
mgates3
 
Posts: 427
Joined: Fri Jan 06, 2012 2:13 pm

Re: OpenCL Magma build issues

Postby aramach4 » Tue Mar 25, 2014 11:34 pm

Got it. Guess I misread it the last time I posted this.

Thanks much for the responses, I will try to figure these out first.

Best Regards,
Anand
aramach4
 
Posts: 4
Joined: Mon Mar 24, 2014 9:45 am


Return to User discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron