OpenCL* for CPU
Ask questions and share information on Intel® SDK for OpenCL™ Applications and OpenCL™ implementations for Intel® CPU
Announcements
This forum covers OpenCL* for CPU only. OpenCL* for GPU questions can be asked in the GPU Compute Software forum. Intel® FPGA SDK for OpenCL™ questions can be ask in the FPGA Intel® High Level Design forum.
1663 Discussions

Missing the double precision extension (cl_khr_fp64) on a Ubuntu 14.04 virtualbox running within Windows 7 using Core i7 2620M

Gu_S_
Beginner
276 Views

I can find the cl_khr_fp64 extension, required for double precision, on a Ubuntu 14.04 running on Amazon EC2 using Intel Xeon and Intel Code Builder for OpenCL API 2015 for Ubuntu:

---------------------------------------------------------------------------
OS name: Linux
Release:3.13.0-52-generic
Version:#86-Ubuntu SMP Mon May 4 04:32:59 UTC 2015
Machine:x86_64

Platform name = Intel(R) OpenCL
Platform version = OpenCL 1.2 LINUX
Platform extensions = cl_khr_icd 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_byte_addressable_store cl_khr_depth_images cl_khr_3d_image_writes cl_intel_exec_by_local_thread cl_khr_spir cl_khr_fp64

Device name =       Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz
Device version = OpenCL 1.2 (Build 43)
Device global memory size= 1040732160
Device available? Yes
Device extensions= cl_khr_icd 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_byte_addressable_store cl_khr_depth_images cl_khr_3d_image_writes cl_intel_exec_by_local_thread cl_khr_spir cl_khr_fp64

 

Following double precision features supported:
  INF and NaN values
  Denormalized numbers
  Round To Nearest Even mode
  Round To Infinity mode
  Round To Zero mode
  Floating-point multiply-and-add operation

----------------------------------------------------------------------------

I can also see that extension for Core i7-2620M:

But I dont see that extension on my home system with Ubuntu 14.04 running as a VirtualBox machine within Windows 7 using Core i7-2620M and the same Intel Code Builder for OpenCL API 2015 for Ubuntu, as the one on Amazon EC2:

-----------------------------------------------------------------------------------------------------------------------

OS name: Linux 
Release:3.13.0-53-generic 
Version:#89-Ubuntu SMP Wed May 20 10:34:39 UTC 2015 
Machine:x86_64 

Platform name = Intel(R) OpenCL 
Platform version = OpenCL 1.2 LINUX 
Platform extensions = cl_khr_icd 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_byte_addressable_store cl_khr_depth_images cl_khr_3d_image_writes cl_intel_exec_by_local_thread cl_khr_spir  

Device name =        Intel(R) Core(TM) i7-2620M CPU @ 2.70GHz 
Device version = OpenCL 1.2 (Build 43) 
Device global memory size= 3156189184
Device available? Yes 
Device extensions= cl_khr_icd 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_byte_addressable_store cl_khr_depth_images cl_khr_3d_image_writes cl_intel_exec_by_local_thread cl_khr_spir  
 
Double precision not supported  

------------------------------------------------------------------------

 

How can I get that extension for my home system above?

Thanks in advance!

PS: Checked for double precision using...   

cl_device_fp_config flag;
ret = clGetDeviceInfo(device_id, CL_DEVICE_DOUBLE_FP_CONFIG, sizeof(flag), &flag, NULL);

if (!flag)
	printf("Double precision not supported \n\n");
else
	printf("Following double precision features supported:\n");
if(flag & CL_FP_INF_NAN)
	printf("  INF and NaN values\n");
if(flag & CL_FP_DENORM)
	printf("  Denormalized numbers\n");
if(flag & CL_FP_ROUND_TO_NEAREST)
	printf("  Round To Nearest Even mode\n");
if(flag & CL_FP_ROUND_TO_INF)
	printf("  Round To Infinity mode\n");
if(flag & CL_FP_ROUND_TO_ZERO)
	printf("  Round To Zero mode\n");
if(flag & CL_FP_FMA)
	printf("  Floating-point multiply-and-add operation\n\n");

 

0 Kudos
3 Replies
andrea_d_
Beginner
276 Views

How you managed to install Code Builder onto a 14.04? It is released just for 12.04.

Gu_S_
Beginner
276 Views

andrea d. wrote:

How you managed to install Code Builder onto a 14.04? It is released just for 12.04.

Yup, saw your other question here on that (but dont know the answer). That 'unsupported OS' warning during installation was optional, and so I went ahead and installed it anyways. It works fine so far.

andrea_d_
Beginner
276 Views

Ok, thanks :) Have you found the double precision extension? Keep us posted! 

Reply