cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

landlord
Adept I

I don't konw if my laptop support OpenCL 2.0 or not

the HW is : A10-7400P + Radeon R9 m270X

the OS is :Windows 8.1 64bit

I have downloaded the opencl 2.0 driver and it says that the driver is compatible with AMD graphics products based on GCN 1.1 Architecture or higher. But i  don't know the architecture of my graphics products.

Please help,thanks a lot

Tags (2)
0 Likes
44 Replies
jtrudeau
Staff
Staff

Re: I don't konw if my laptop support OpenCL 2.0 or not

The AMD OpenCL 2.0 driver is compatible with AMD graphics products based on GCN 1.1 Architecture or higher.

The m290X is built on GCN 1.1.

The graphics cores in the A10-7400 P are as well.

So the answer is yes.

Perhaps an excess of caution, but keep in mind that while your hardware supports this technology, that doesn't mean there are a lot of apps out there that use it. OpenCL 2.0 is still pretty new. However, any app that does, will work effectively and likely perform better on your hardware than it would on hardware that only supports OpenCL 1.2.

By the way, I have NOT added you to the DevGuru's white list. This is not really a developer question. Happy to answer, this is a good place.

landlord
Adept I

Re: I don't konw if my laptop support OpenCL 2.0 or not

Thank you for your reply.

I am sorry that i didn't explain my question clearly.

I want to use SVM in my OpenCL code which is supported by OpenCL 2.0.

So i must confirm that my devices if support OpenCL 2.0 and SVM or not.

I did some test as follows:

step1:

cout<<"CL_DEVICE_SVM_COARSE_GRAIN_BUFFER: "<<CL_DEVICE_SVM_COARSE_GRAIN_BUFFER<<endl;

cout<<"CL_DEVICE_SVM_FINE_GRAIN_BUFFER: "<<CL_DEVICE_SVM_FINE_GRAIN_BUFFER<<endl;

cout<<"CL_DEVICE_SVM_FINE_GRAIN_SYSTEM: "<<CL_DEVICE_SVM_FINE_GRAIN_SYSTEM<<endl;

cout<<"CL_DEVICE_SVM_ATOMICS: "<<CL_DEVICE_SVM_ATOMICS<<endl;

cl_device_svm_capabilities *cap1,*cap2,*cap3;

size_t cap1_size,cap2_size,cap3_size;

status=clGetDeviceInfo(devices[0],CL_DEVICE_SVM_CAPABILITIES,0,NULL,&cap1_size);

status=clGetDeviceInfo(devices[1],CL_DEVICE_SVM_CAPABILITIES,0,NULL,&cap2_size);

status=clGetDeviceInfo(devices[2],CL_DEVICE_SVM_CAPABILITIES,0,NULL,&cap3_size);

cap1=(cl_device_svm_capabilities *)malloc(cap1_size);

cap2=(cl_device_svm_capabilities *)malloc(cap2_size);

cap3=(cl_device_svm_capabilities *)malloc(cap3_size);

status=clGetDeviceInfo(devices[0],CL_DEVICE_SVM_CAPABILITIES,cap1_size,cap1,NULL);

cout<<"cap1:"<<*cap1<<endl;

status=clGetDeviceInfo(devices[1],CL_DEVICE_SVM_CAPABILITIES,cap2_size,cap2,NULL);

cout<<"cap2:"<<*cap2<<endl;

status=clGetDeviceInfo(devices[2],CL_DEVICE_SVM_CAPABILITIES,cap3_size,cap3,NULL);

cout<<"cap3:"<<*cap3<<endl;

The result:

CL_DEVICE_SVM_COARSE_GRAIN_BUFFER: 1

CL_DEVICE_SVM_FINE_GRAIN_BUFFER: 2

CL_DEVICE_SVM_FINE_GRAIN_SYSTEM:4

CL_DEVICE_SVM_ATOMICS: 8

cap1:0

cap2:0

cap3:15

PS: devices[0] (name):Spectre, devices[1](name):Bonaire, devices[2](name):AMD A10-7400p Radeon R6, 10 Computer Cores 4C+6G

step2:

bufferSVM=clSVMAlloc(context,CL_MEM_READ_WRITE,datasize,0);

    if(bufferSVM==NULL)

   cout<<"clSVMAlloc() failure!\n";

    status=clEnqueueSVMMap(cmdQueue1,CL_TRUE,CL_MAP_READ,bufferSVM,datasize,0,NULL,NULL);

    if(status!=CL_SUCCESS){

   cout<<"clEnqueueSVMMap is failure!"<<endl;
   exit(1);

    }

The clEnqueueSVMMap function return CL_OUT_OF_RESOURCES.

0 Likes
jtrudeau
Staff
Staff

Re: I don't konw if my laptop support OpenCL 2.0 or not

Thanks for the clarification! I will whitelist you and move this into the OpenCL forum. We are clearly NOT talking to an end-user buying a laptop. Welcome to the community!

0 Likes
dipak
Staff
Staff

Re: I don't konw if my laptop support OpenCL 2.0 or not

Hi,

You can check OpenCL version supported by the device using "clinfo" command. It lists all the information about each of the detected devices.

Please make sure you're using a device that supports SVM capabilities, otherwise SVM functions will fail. Could you please share your "clinfo" output?

Regards,

0 Likes
landlord
Adept I

Re: I don't konw if my laptop support OpenCL 2.0 or not

hi,

Thank you for your attention.

I take two kinds of ways to check OpenCL version:

(1)I excute the "clinfo.exe" located in AMDAPPSDKROOT\bin\x86_64\ and get the following result.

******************************************result1************************************************************

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: 654Mhz

Address bits: 64

Max memory allocation: 602406912

Image support: Yes

Max number of images read arguments: 128

Max number of images write arguments: 64

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: 2146959360

Constant buffer size: 65536

Max number of constant args: 8

Local memory type: Scratchpad

Local memory size: 32768

Max pipe arguments: 16

Max pipe active reservations: 16

Max pipe packet size: 602406912

Max global variable size: 542166016

Max global variable preferred total size: 2146959360

Max read/write image args: 64

Max on device events: 1024

Queue on device max size: 524288

Max on device queues: 1

Queue on device preferred size: 16384

SVM capabilities:

Coarse grain buffer: Yes

Fine grain buffer: Yes

Fine grain system: No

Atomics: No

Preferred platform atomic alignment: 0

Preferred global atomic alignment: 0

Preferred local atomic alignment: 0

Kernel Preferred work group size multiple: 64

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: No

Queue on Host properties:

Out-of-Order: No

Profiling : Yes

Queue on Device properties:

Out-of-Order: Yes

Profiling : Yes

Platform ID: 00007FFC9C8F5B60

Name: Spectre

Vendor: Advanced Micro Devices, Inc.

Device OpenCL C version: OpenCL C 2.0

Driver version: 1642.5 (VM)

Profile: FULL_PROFILE

Version: OpenCL 2.0 AMD-APP (1642.5)

Extensions: cl_khr_fp64 cl_amd_fp64 cl_khr_

global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int3

2_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 clamd_printf cl_amd_media_ops cl_amd_media_ops2 cl_amd_popcnt cl_khr_d3d1

0_sharing cl_khr_d3d11_sharing cl_khr_dx9_media_sharing cl_khr_image2d_from_buff

er cl_khr_spir cl_khr_subgroups cl_khr_gl_event cl_khr_depth_images

Device Type: CL_DEVICE_TYPE_GPU

Vendor ID: 1002h

Board name: AMD Radeon R9 M270X

Device Topology: PCI[ B#1, D#0, F#0 ]

Max compute units: 12

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: 654Mhz

Address bits: 32

Max memory allocation: 1408499712

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: 2147483648

Constant buffer size: 65536

Max number of constant args: 8

Local memory type: Scratchpad

Local memory size: 32768

Max pipe arguments: 0

Max pipe active reservations: 0

Max pipe packet size: 0

Max global variable size: 0

Max global variable preferred total size: 0

Max read/write image args: 0

Max on device events: 0

Queue on device max size: 0

Max on device queues: 0

Queue on device preferred size: 0

SVM capabilities:

Coarse grain buffer: No

Fine grain buffer: No

Fine grain system: No

Atomics: No

Preferred platform atomic alignment: 0

Preferred global atomic alignment: 0

Preferred local atomic alignment: 0

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 on Host properties:

Out-of-Order: No

Profiling : Yes

Queue on Device properties:

Out-of-Order: No

Profiling : No

Platform ID: 00007FFC9C8F5B60

Name: Bonaire

Vendor: Advanced Micro Devices, Inc.

Device OpenCL C version: OpenCL C 1.2

Driver version: 1642.5 (VM)

Profile: FULL_PROFILE

Version: OpenCL 1.2 AMD-APP (1642.5)

Extensions: cl_khr_fp64 cl_amd_fp64 cl_khr_

global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int3

2_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 clamd_printf cl_amd_media_ops cl_amd_media_ops2 cl_amd_popcnt cl_khr_d3d1

0_sharing cl_khr_d3d11_sharing cl_khr_dx9_media_sharing cl_khr_image2d_from_buff

er cl_khr_spir cl_khr_gl_event

Device Type: CL_DEVICE_TYPE_CPU

Vendor ID: 1002h

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: 2495Mhz

Address bits: 64

Max memory allocation: 2147483648

Image support: Yes

Max number of images read arguments: 128

Max number of images write arguments: 64

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: 7448162304

Constant buffer size: 65536

Max number of constant args: 8

Local memory type: Global

Local memory size: 32768

Max pipe arguments: 16

Max pipe active reservations: 16

Max pipe packet size: 2147483648

Max global variable size: 1879048192

Max global variable preferred total size: 1879048192

Max read/write image args: 64

Max on device events: 0

Queue on device max size: 0

Max on device queues: 0

Queue on device preferred size: 0

SVM capabilities:

Coarse grain buffer: Yes

Fine grain buffer: Yes

Fine grain system: Yes

Atomics: Yes

Preferred platform atomic alignment: 0

Preferred global atomic alignment: 0

Preferred local atomic alignment: 0

Kernel Preferred work group size multiple: 1

Error correction support: 0

Unified memory for Host and Device: 1

Profiling timer resolution: 410

Device endianess: Little

Available: Yes

Compiler available: Yes

Execution capabilities:

Execute OpenCL kernels: Yes

Execute native function: Yes

Queue on Host properties:

Out-of-Order: No

Profiling : Yes

Queue on Device properties:

Out-of-Order: No

Profiling : No

Platform ID: 00007FFC9C8F5B60

Name: AMD A10-7400P Radeon R6, 10 Com

pute Cores 4C+6G

Vendor: AuthenticAMD

Device OpenCL C version: OpenCL C 1.2

Driver version: 1642.5 (sse2,avx,fma4)

Profile: FULL_PROFILE

Version: OpenCL 1.2 AMD-APP (1642.5)

Extensions: cl_khr_fp64 cl_amd_fp64 cl_khr_

global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int3

2_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_vec

3 cl_amd_printf cl_amd_media_ops cl_amd_media_ops2 cl_amd_popcnt cl_khr_d3d10_sh

aring cl_khr_spir cl_khr_gl_event

**********************************************************************************************************

(2)I input clinfo in cmd and get the result 2 as follows.

******************************************result 2********************************************************

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: 654Mhz

Address bits: 32

Max memory allocation: 603193344

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: 2146959360

Constant buffer size: 65536

Max number of constant args: 8

Local memory type: Scratchpad

Local memory size: 32768

Max pipe arguments: 0

Max pipe active reservations: 0

Max pipe packet size: 0

Max global variable size: 0

Max global variable preferred total size: 0

Max read/write image args: 0

Max on device events: 0

Queue on device max size: 0

Max on device queues: 0

Queue on device preferred size: 0

SVM capabilities:

Coarse grain buffer: No

Fine grain buffer: No

Fine grain system: No

Atomics: No

Preferred platform atomic alignment: 0

Preferred global atomic alignment: 0

Preferred local atomic alignment: 0

Kernel Preferred work group size multiple: 64

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: No

Queue on Host properties:

Out-of-Order: No

Profiling : Yes

Queue on Device properties:

Out-of-Order: No

Profiling : No

Platform ID: 00007FFCB1D03FB0

Name: Spectre

Vendor: Advanced Micro Devices, Inc.

Device OpenCL C version: OpenCL C 1.2

Driver version: 1598.5 (VM)

Profile: FULL_PROFILE

Version: OpenCL 1.2 AMD-APP (1598.5)

Extensions: cl_khr_fp64 cl_amd_fp64 cl_khr_

global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int3

2_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 clamd_printf cl_amd_media_ops cl_amd_media_ops2 cl_amd_popcnt cl_khr_d3d1

0_sharing cl_khr_d3d11_sharing cl_khr_dx9_media_sharing cl_khr_image2d_from_buff

er cl_khr_spir cl_khr_gl_event

Device Type: CL_DEVICE_TYPE_GPU

Vendor ID: 1002h

Board name: AMD Radeon R9 M270X

Device Topology: PCI[ B#1, D#0, F#0 ]

Max compute units: 12

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: 654Mhz

Address bits: 32

Max memory allocation: 1408499712

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: 2147483648

Constant buffer size: 65536

Max number of constant args: 8

Local memory type: Scratchpad

Local memory size: 32768

Max pipe arguments: 0

Max pipe active reservations: 0

Max pipe packet size: 0

Max global variable size: 0

Max global variable preferred total size: 0

Max read/write image args: 0

Max on device events: 0

Queue on device max size: 0

Max on device queues: 0

Queue on device preferred size: 0

SVM capabilities:

Coarse grain buffer: No

Fine grain buffer: No

Fine grain system: No

Atomics: No

Preferred platform atomic alignment: 0

Preferred global atomic alignment: 0

Preferred local atomic alignment: 0

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 on Host properties:

Out-of-Order: No

Profiling : Yes

Queue on Device properties:

Out-of-Order: No

Profiling : No

Platform ID: 00007FFCB1D03FB0

Name: Bonaire

Vendor: Advanced Micro Devices, Inc.

Device OpenCL C version: OpenCL C 1.2

Driver version: 1598.5 (VM)

Profile: FULL_PROFILE

Version: OpenCL 1.2 AMD-APP (1598.5)

Extensions: cl_khr_fp64 cl_amd_fp64 cl_khr_

global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int3

2_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 clamd_printf cl_amd_media_ops cl_amd_media_ops2 cl_amd_popcnt cl_khr_d3d1

0_sharing cl_khr_d3d11_sharing cl_khr_dx9_media_sharing cl_khr_image2d_from_buff

er cl_khr_spir cl_khr_gl_event

Device Type: CL_DEVICE_TYPE_CPU

Vendor ID: 1002h

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: 2495Mhz

Address bits: 64

Max memory allocation: 2147483648

Image support: Yes

Max number of images read arguments: 128

Max number of images write arguments: 64

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: 7448162304

Constant buffer size: 65536

Max number of constant args: 8

Local memory type: Global

Local memory size: 32768

Max pipe arguments: 16

Max pipe active reservations: 16

Max pipe packet size: 2147483648

Max global variable size: 1879048192

Max global variable preferred total size: 1879048192

Max read/write image args: 64

Max on device events: 0

Queue on device max size: 0

Max on device queues: 0

Queue on device preferred size: 0

SVM capabilities:

Coarse grain buffer: Yes

Fine grain buffer: Yes

Fine grain system: Yes

Atomics: Yes

Preferred platform atomic alignment: 0

Preferred global atomic alignment: 0

Preferred local atomic alignment: 0

Kernel Preferred work group size multiple: 1

Error correction support: 0

Unified memory for Host and Device: 1

Profiling timer resolution: 410

Device endianess: Little

Available: Yes

Compiler available: Yes

Execution capabilities:

Execute OpenCL kernels: Yes

Execute native function: Yes

Queue on Host properties:

Out-of-Order: No

Profiling : Yes

Queue on Device properties:

Out-of-Order: No

Profiling : No

Platform ID: 00007FFCB1D03FB0

Name: AMD A10-7400P Radeon R6, 10 Com

pute Cores 4C+6G

Vendor: AuthenticAMD

Device OpenCL C version: OpenCL C 1.2

Driver version: 1598.5 (sse2,avx,fma4)

Profile: FULL_PROFILE

Version: OpenCL 1.2 AMD-APP (1598.5)

Extensions: cl_khr_fp64 cl_amd_fp64 cl_khr_

global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int3

2_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_vec

3 cl_amd_printf cl_amd_media_ops cl_amd_media_ops2 cl_amd_popcnt cl_khr_d3d10_sh

aring cl_khr_spir cl_khr_gl_event

***********************************************************************************************************

I have 2 questions.

(1) I am sorry that i don't know how to get the full output in dialog box.

(2) Why are the two results different ? Which one should i beileve?

Look forward to your reply.

Regards

0 Likes
dipak
Staff
Staff

Re: I don't konw if my laptop support OpenCL 2.0 or not

1) Open a command prompt window and type: "clinfo > <file_name>.txt" ---> it will redirect the clinfo output to the file named <file_name>.txt under current directory.

2) clinfo and some other libraries come with catalyst driver as well as APP SDK. For OpenCL development targeted to CPU only m/c, one can use the APP SDK without installing the catalyst driver. But, if one wants to access the GPUs, he/she must install the appropriate catalyst driver. Usually as driver is updated more frequently than APP SDK, it is expected that a more recent version of clinfo and other packages would come with catalyst driver. That's why, driver version packages are set as default one. If possible, its always better to have the latest driver installed on the m/c.

In your case, it seems that the driver is little bit older (please check the driver version for both the cases). I would suggest you to install the latest catalyst driver 15.7 available right now and then check the clinfo output as well as your program.

Regards,

0 Likes
landlord
Adept I

Re: I don't konw if my laptop support OpenCL 2.0 or not

hi,

I downloaded the 15.7 driver and installed successfully.

After using clinfo command,I get output as follows:

**************************************************************************

Number of platforms:     1
  Platform Profile:     FULL_PROFILE
  Platform Version:     OpenCL 2.0 AMD-APP (1800.5)
  Platform Name:     AMD Accelerated Parallel Processing
  Platform Vendor:     Advanced Micro Devices, Inc.
  Platform Extensions:     cl_khr_icd cl_khr_d3d10_sharing cl_khr_d3d11_sharing cl_khr_dx9_media_sharing cl_amd_event_callback cl_amd_offline_devices

  Platform Name:                 AMD Accelerated Parallel Processing

Number of devices:                 3

  Device Type:                     CL_DEVICE_TYPE_GPU

  Vendor ID:                     1002h

  Board name:                     AMD Radeon(TM) R6 Graphics

  Device Topology:                 PCI[ B#0, D#1, F#0 ]

  Max compute units:                 6

  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:                 654Mhz

  Address bits:                     64

  Max memory allocation:             1207369728

  Image support:                 Yes

  Max number of images read arguments:         128

  Max number of images write arguments:         64

  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:                 2683568128

  Constant buffer size:                 65536

  Max number of constant args:             8

  Local memory type:                 Scratchpad

  Local memory size:                 32768

  Max pipe arguments:                 16

  Max pipe active reservations:             16

  Max pipe packet size:                 1207369728

  Max global variable size:             1086632704

  Max global variable preferred total size:     2683568128

  Max read/write image args:             64

  Max on device events:                 1024

  Queue on device max size:             524288

  Max on device queues:                 1

  Queue on device preferred size:         262144

  SVM capabilities:                

    Coarse grain buffer:             Yes

    Fine grain buffer:                 Yes

    Fine grain system:                 No

    Atomics:                     No

  Preferred platform atomic alignment:         0

  Preferred global atomic alignment:         0

  Preferred local atomic alignment:         0

  Kernel Preferred work group size multiple:     64

  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:             No

  Queue on Host properties:                

    Out-of-Order:                 No

    Profiling :                     Yes

  Queue on Device properties:                

    Out-of-Order:                 Yes

    Profiling :                     Yes

  Platform ID:                     00007FFEE2B8F180

  Name:                         Spectre

  Vendor:                     Advanced Micro Devices, Inc.

  Device OpenCL C version:             OpenCL C 2.0

  Driver version:                 1800.5 (VM)

  Profile:                     FULL_PROFILE

  Version:                     OpenCL 2.0 AMD-APP (1800.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_khr_gl_depth_images 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_d3d10_sharing cl_khr_d3d11_sharing cl_khr_dx9_media_sharing cl_khr_image2d_from_buffer cl_khr_spir cl_khr_subgroups cl_khr_gl_event cl_khr_depth_images

  Device Type:                                   CL_DEVICE_TYPE_GPU

  Vendor ID:                                     1002h

  Board name:                                    AMD Radeon R9 M280X

  Device Topology:                               PCI[ B#1, D#0, F#0 ]

  Max compute units:                             12

  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:                           654Mhz

  Address bits:                                  64

  Max memory allocation:                         1409286144

  Image support:                                 Yes

  Max number of images read arguments:           128

  Max number of images write arguments:          64

  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:                            2147483648

  Constant buffer size:                          65536

  Max number of constant args:                   8

  Local memory type:                             Scratchpad

  Local memory size:                             32768

  Max pipe arguments:                            16

  Max pipe active reservations:                  16

  Max pipe packet size:                          1409286144

  Max global variable size:                      1268357376

  Max global variable preferred total size:      2147483648

  Max read/write image args:                     64

  Max on device events:                          1024

  Queue on device max size:                      524288

  Max on device queues:                          1

  Queue on device preferred size:                262144

  SVM capabilities:

    Coarse grain buffer:                         Yes

    Fine grain buffer:                           Yes

    Fine grain system:                           No

    Atomics:                                     No

  Preferred platform atomic alignment:           0

  Preferred global atomic alignment:             0

  Preferred local atomic alignment:              0

  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 on Host properties:

    Out-of-Order:                                No

    Profiling :                                  Yes

  Queue on Device properties:

    Out-of-Order:                                Yes

    Profiling :                                  Yes

  Platform ID:                                   00007FFEE2B8F180

  Name:                                          Bonaire

  Vendor:                                        Advanced Micro Devices, Inc.

  Device OpenCL C version:                       OpenCL C 2.0

  Driver version:                                1800.5 (VM)

  Profile:                                       FULL_PROFILE

  Version:                                       OpenCL 2.0 AMD-APP (1800.5)

  Extensions:                                    cl_khr_fp64 cl_amd_fp64 cl_khr_

global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int3

2_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_khr_gl_depth_images 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_d3d10_sharing cl_khr_d3d11_sharing cl_khr_dx9_media_sharing c

l_khr_image2d_from_buffer cl_khr_spir cl_khr_subgroups cl_khr_gl_event cl_khr_de

pth_images

  Device Type:                                   CL_DEVICE_TYPE_CPU

  Vendor ID:                                     1002h

  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:                           2495Mhz

  Address bits:                                  64

  Max memory allocation:                         2147483648

  Image support:                                 Yes

  Max number of images read arguments:           128

  Max number of images write arguments:          64

  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:                            7448162304

  Constant buffer size:                          65536

  Max number of constant args:                   8

  Local memory type:                             Global

  Local memory size:                             32768

  Max pipe arguments:                            16

  Max pipe active reservations:                  16

  Max pipe packet size:                          2147483648

  Max global variable size:                      1879048192

  Max global variable preferred total size:      1879048192

  Max read/write image args:                     64

  Max on device events:                          0

  Queue on device max size:                      0

  Max on device queues:                          0

  Queue on device preferred size:                0

  SVM capabilities:

    Coarse grain buffer:                         No

    Fine grain buffer:                           No

    Fine grain system:                           No

    Atomics:                                     No

  Preferred platform atomic alignment:           0

  Preferred global atomic alignment:             0

  Preferred local atomic alignment:              0

  Kernel Preferred work group size multiple:     1

  Error correction support:                      0

  Unified memory for Host and Device:            1

  Profiling timer resolution:                    410

  Device endianess:                              Little

  Available:                                     Yes

  Compiler available:                            Yes

  Execution capabilities:

    Execute OpenCL kernels:                      Yes

    Execute native function:                     Yes

  Queue on Host properties:

    Out-of-Order:                                No

    Profiling :                                  Yes

  Queue on Device properties:

    Out-of-Order:                                No

    Profiling :                                  No

  Platform ID:                                   00007FFEE2B8F180

  Name:                                          AMD A10-7400P Radeon R6, 10 Com

pute Cores 4C+6G

  Vendor:                                        AuthenticAMD

  Device OpenCL C version:                       OpenCL C 1.2

  Driver version:                                1800.5 (sse2,avx,fma4)

  Profile:                                       FULL_PROFILE

  Version:                                       OpenCL 1.2 AMD-APP (1800.5)

  Extensions:                                    cl_khr_fp64 cl_amd_fp64 cl_khr_

global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int3

2_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_vec

3 cl_amd_printf cl_amd_media_ops cl_amd_media_ops2 cl_amd_popcnt cl_khr_d3d10_sh

aring cl_khr_spir cl_khr_gl_event

**************************************************************************************************************

Comparing with yesterday's results, GPU R6 and GPU R9 seems to support SVM.

Does it mean that i can use SVM in my OpenCL code?

I am not fammiliar with SVM and the Demo which downloaded from http://developer.amd.com/tools-and-sdks/opencl-zone/amd-accelerated-parallel-processing-app-sdk/open...  are  little bit compliacted.

Can you show me some simple demos to test SVM?

Many thanks.

0 Likes
dipak
Staff
Staff

Re: I don't konw if my laptop support OpenCL 2.0 or not

Now, you've SVM support for the GPUs and you can use it. Please run the SVM related samples from APP SDK to explore it.

Sure, I'll try to write a simple program to showcase usage of SVM and share with you. However, I think, SVMBinarySearchTree sample is a good one for this purpose. You don't need to understand the code or logic in detail. Just check the SVM related  APIs to understand its usage. Also check how kernel code can directly access the pointer data structure which was not possible until OpenCL 2.0. For better understanding, you may refer this blog http://developer.amd.com/community/blog/2014/10/24/opencl-2-shared-virtual-memory/ .

Regards,

landlord
Adept I

Re: I don't konw if my laptop support OpenCL 2.0 or not

Hi,

I followed your advices and debuged the SVMBinarySearchTree. However,i got a error report"Unsupported device! Required CL_DEVICE_OPENCL_C_VERSION 2.0 or higher".

I checked the code and found that when i using clGetDeviceInfo(device[0],CL_DEVICE_VERSION,sizeof(char)*(tempsize),deviceversion,NULL) the API returns "OpenCL 1.2 AMD-APP (1800.5)"

0 Likes