From 0a85b18a46e80052c9a8e5f0d1bc92b47136cd2e Mon Sep 17 00:00:00 2001 From: sjplimp Date: Thu, 19 Apr 2012 19:30:59 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@8027 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- lib/gpu/lal_preprocessor.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/lib/gpu/lal_preprocessor.h b/lib/gpu/lal_preprocessor.h index 184664cdd0..0ea3a1ca6d 100644 --- a/lib/gpu/lal_preprocessor.h +++ b/lib/gpu/lal_preprocessor.h @@ -239,7 +239,11 @@ typedef struct _double4 double4; #define BLOCK_CELL_ID 128 #define MAX_BIO_SHARED_TYPES 128 -#pragma OPENCL EXTENSION cl_khr_fp64: enable +#if defined(cl_khr_fp64) +#pragma OPENCL EXTENSION cl_khr_fp64 : enable +#elif defined(cl_amd_fp64) +#pragma OPENCL EXTENSION cl_amd_fp64 : enable +#endif #endif @@ -267,7 +271,11 @@ typedef struct _double4 double4; #define BLOCK_CELL_ID 128 #define MAX_BIO_SHARED_TYPES 128 -#pragma OPENCL EXTENSION cl_khr_fp64: enable +#if defined(cl_khr_fp64) +#pragma OPENCL EXTENSION cl_khr_fp64 : enable +#elif defined(cl_amd_fp64) +#pragma OPENCL EXTENSION cl_amd_fp64 : enable +#endif #endif