Newer
Older
call clBuildProgram(prog, trim(string), ierr)
call clGetProgramBuildInfo(prog, opencl%device, CL_PROGRAM_BUILD_LOG, string, ierrlog)
if(ierrlog /= CL_SUCCESS) call opencl_print_error(ierrlog, "clGetProgramBuildInfo")
! CL_PROGRAM_BUILD_LOG seems to have a useless '\n' in it
newlen = scan(string, achar(010), back = .true.) - 1
if(newlen >= 0) string = string(1:newlen)
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
if(len(trim(string)) > 0) write(stderr, '(a)') trim(string)
if(ierr /= CL_SUCCESS) call opencl_print_error(ierr, "clBuildProgram")
call profiling_out(prof)
POP_SUB(opencl_build_program)
end subroutine opencl_build_program
! -----------------------------------------------
subroutine opencl_release_program(prog)
type(cl_program), intent(inout) :: prog
integer :: ierr
PUSH_SUB(opencl_release_program)
call clReleaseProgram(prog, ierr)
if(ierr /= CL_SUCCESS) call opencl_print_error(ierr, "clReleaseProgram")
POP_SUB(opencl_release_program)
end subroutine opencl_release_program
! -----------------------------------------------
subroutine opencl_release_kernel(prog)
type(cl_kernel), intent(inout) :: prog
integer :: ierr
PUSH_SUB(opencl_release_kernel)
call clReleaseKernel(prog, ierr)
if(ierr /= CL_SUCCESS) call opencl_print_error(ierr, "clReleaseKernel")
POP_SUB(opencl_release_kernel)
end subroutine opencl_release_kernel
! -----------------------------------------------
subroutine opencl_create_kernel(kernel, prog, name)
type(cl_kernel), intent(inout) :: kernel
type(cl_program), intent(inout) :: prog
character(len=*), intent(in) :: name
integer :: ierr
type(profile_t), save :: prof
PUSH_SUB(opencl_create_kernel)
call profiling_in(prof, "CL_BUILD_KERNEL", exclude = .true.)
kernel = clCreateKernel(prog, name, ierr)
if(ierr /= CL_SUCCESS) call opencl_print_error(ierr, "clCreateKernel")
call profiling_out(prof)
POP_SUB(opencl_create_kernel)
end subroutine opencl_create_kernel
! ------------------------------------------------
subroutine opencl_print_error(ierr, name)
integer, intent(in) :: ierr
character(len=*), intent(in) :: name
character(len=40) :: errcode
PUSH_SUB(opencl_print_error)
select case(ierr)
case(CL_SUCCESS); errcode = 'CL_SUCCESS '
case(CL_DEVICE_NOT_FOUND); errcode = 'CL_DEVICE_NOT_FOUND '
case(CL_DEVICE_NOT_AVAILABLE); errcode = 'CL_DEVICE_NOT_AVAILABLE '
case(CL_COMPILER_NOT_AVAILABLE); errcode = 'CL_COMPILER_NOT_AVAILABLE '
case(CL_MEM_OBJECT_ALLOCATION_FAILURE); errcode = 'CL_MEM_OBJECT_ALLOCATION_FAILURE '
case(CL_OUT_OF_RESOURCES); errcode = 'CL_OUT_OF_RESOURCES '
case(CL_OUT_OF_HOST_MEMORY); errcode = 'CL_OUT_OF_HOST_MEMORY '
case(CL_PROFILING_INFO_NOT_AVAILABLE); errcode = 'CL_PROFILING_INFO_NOT_AVAILABLE '
case(CL_MEM_COPY_OVERLAP); errcode = 'CL_MEM_COPY_OVERLAP '
case(CL_IMAGE_FORMAT_MISMATCH); errcode = 'CL_IMAGE_FORMAT_MISMATCH '
case(CL_IMAGE_FORMAT_NOT_SUPPORTED); errcode = 'CL_IMAGE_FORMAT_NOT_SUPPORTED '
case(CL_BUILD_PROGRAM_FAILURE); errcode = 'CL_BUILD_PROGRAM_FAILURE '
case(CL_MAP_FAILURE); errcode = 'CL_MAP_FAILURE '
case(CL_INVALID_VALUE); errcode = 'CL_INVALID_VALUE '
case(CL_INVALID_DEVICE_TYPE); errcode = 'CL_INVALID_DEVICE_TYPE '
case(CL_INVALID_PLATFORM); errcode = 'CL_INVALID_PLATFORM '
case(CL_INVALID_DEVICE); errcode = 'CL_INVALID_DEVICE '
case(CL_INVALID_CONTEXT); errcode = 'CL_INVALID_CONTEXT '
case(CL_INVALID_QUEUE_PROPERTIES); errcode = 'CL_INVALID_QUEUE_PROPERTIES '
case(CL_INVALID_COMMAND_QUEUE); errcode = 'CL_INVALID_COMMAND_QUEUE '
case(CL_INVALID_HOST_PTR); errcode = 'CL_INVALID_HOST_PTR '
case(CL_INVALID_MEM_OBJECT); errcode = 'CL_INVALID_MEM_OBJECT '
case(CL_INVALID_IMAGE_FORMAT_DESCRIPTOR); errcode = 'CL_INVALID_IMAGE_FORMAT_DESCRIPTOR '
case(CL_INVALID_IMAGE_SIZE); errcode = 'CL_INVALID_IMAGE_SIZE '
case(CL_INVALID_SAMPLER); errcode = 'CL_INVALID_SAMPLER '
case(CL_INVALID_BINARY); errcode = 'CL_INVALID_BINARY '
case(CL_INVALID_BUILD_OPTIONS); errcode = 'CL_INVALID_BUILD_OPTIONS '
case(CL_INVALID_PROGRAM); errcode = 'CL_INVALID_PROGRAM '
case(CL_INVALID_PROGRAM_EXECUTABLE); errcode = 'CL_INVALID_PROGRAM_EXECUTABLE '
case(CL_INVALID_KERNEL_NAME); errcode = 'CL_INVALID_KERNEL_NAME '
case(CL_INVALID_KERNEL_DEFINITION); errcode = 'CL_INVALID_KERNEL_DEFINITION '
case(CL_INVALID_KERNEL); errcode = 'CL_INVALID_KERNEL '
case(CL_INVALID_ARG_INDEX); errcode = 'CL_INVALID_ARG_INDEX '
case(CL_INVALID_ARG_VALUE); errcode = 'CL_INVALID_ARG_VALUE '
case(CL_INVALID_ARG_SIZE); errcode = 'CL_INVALID_ARG_SIZE '
case(CL_INVALID_KERNEL_ARGS); errcode = 'CL_INVALID_KERNEL_ARGS '
case(CL_INVALID_WORK_DIMENSION); errcode = 'CL_INVALID_WORK_DIMENSION '
case(CL_INVALID_WORK_GROUP_SIZE); errcode = 'CL_INVALID_WORK_GROUP_SIZE '
case(CL_INVALID_WORK_ITEM_SIZE); errcode = 'CL_INVALID_WORK_ITEM_SIZE '
case(CL_INVALID_GLOBAL_OFFSET); errcode = 'CL_INVALID_GLOBAL_OFFSET '
case(CL_INVALID_EVENT_WAIT_LIST); errcode = 'CL_INVALID_EVENT_WAIT_LIST '
case(CL_INVALID_EVENT); errcode = 'CL_INVALID_EVENT '
case(CL_INVALID_OPERATION); errcode = 'CL_INVALID_OPERATION '
case(CL_INVALID_GL_OBJECT); errcode = 'CL_INVALID_GL_OBJECT '
case(CL_INVALID_BUFFER_SIZE); errcode = 'CL_INVALID_BUFFER_SIZE '
case(CL_INVALID_MIP_LEVEL); errcode = 'CL_INVALID_MIP_LEVEL '
case(CL_INVALID_GLOBAL_WORK_SIZE); errcode = 'CL_INVALID_GLOBAL_WORK_SIZE '
case(CL_PLATFORM_NOT_FOUND_KHR); errcode = 'CL_PLATFORM_NOT_FOUND_KHR'
case default
write(errcode, '(i10)') ierr
errcode = 'UNKNOWN ERROR CODE ('//trim(adjustl(errcode))//')'
end select
message(1) = 'OpenCL '//trim(name)//' '//trim(errcode)
call messages_fatal(1)
POP_SUB(opencl_print_error)
end subroutine opencl_print_error
! ----------------------------------------------------
subroutine clblas_print_error(ierr, name)
integer, intent(in) :: ierr
character(len=*), intent(in) :: name
character(len=40) :: errcode
PUSH_SUB(clblas_print_error)
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
select case(ierr)
case(clAmdBlasSuccess); errcode = 'clAmdBlasSuccess'
case(clAmdBlasInvalidValue); errcode = 'clAmdBlasInvalidValue'
case(clAmdBlasInvalidCommandQueue); errcode = 'clAmdBlasInvalidCommandQueue'
case(clAmdBlasInvalidContext); errcode = 'clAmdBlasInvalidContext'
case(clAmdBlasInvalidMemObject); errcode = 'clAmdBlasInvalidMemObject'
case(clAmdBlasInvalidDevice); errcode = 'clAmdBlasInvalidDevice'
case(clAmdBlasInvalidEventWaitList); errcode = 'clAmdBlasInvalidEventWaitList'
case(clAmdBlasOutOfResources); errcode = 'clAmdBlasOutOfResources'
case(clAmdBlasOutOfHostMemory); errcode = 'clAmdBlasOutOfHostMemory'
case(clAmdBlasInvalidOperation); errcode = 'clAmdBlasInvalidOperation'
case(clAmdBlasCompilerNotAvailable); errcode = 'clAmdBlasCompilerNotAvailable'
case(clAmdBlasBuildProgramFailure ); errcode = 'clAmdBlasBuildProgramFailure'
case(clAmdBlasNotImplemented); errcode = 'clAmdBlasNotImplemented'
case(clAmdBlasNotInitialized); errcode = 'clAmdBlasNotInitialized'
case(clAmdBlasInvalidMatA); errcode = 'clAmdBlasInvalidMatA'
case(clAmdBlasInvalidMatB); errcode = 'clAmdBlasInvalidMatB'
case(clAmdBlasInvalidMatC); errcode = 'clAmdBlasInvalidMatC'
case(clAmdBlasInvalidVecX); errcode = 'clAmdBlasInvalidVecX'
case(clAmdBlasInvalidVecY); errcode = 'clAmdBlasInvalidVecY'
case(clAmdBlasInvalidDim); errcode = 'clAmdBlasInvalidDim'
case(clAmdBlasInvalidLeadDimA); errcode = 'clAmdBlasInvalidLeadDimA'
case(clAmdBlasInvalidLeadDimB); errcode = 'clAmdBlasInvalidLeadDimB'
case(clAmdBlasInvalidLeadDimC); errcode = 'clAmdBlasInvalidLeadDimC'
case(clAmdBlasInvalidIncX); errcode = 'clAmdBlasInvalidIncX'
case(clAmdBlasInvalidIncY); errcode = 'clAmdBlasInvalidIncY'
case(clAmdBlasInsufficientMemMatA); errcode = 'clAmdBlasInsufficientMemMatA'
case(clAmdBlasInsufficientMemMatB); errcode = 'clAmdBlasInsufficientMemMatB'
case(clAmdBlasInsufficientMemMatC); errcode = 'clAmdBlasInsufficientMemMatC'
case(clAmdBlasInsufficientMemVecX); errcode = 'clAmdBlasInsufficientMemVecX'
case(clAmdBlasInsufficientMemVecY); errcode = 'clAmdBlasInsufficientMemVecY'
case default
write(errcode, '(i10)') ierr
errcode = 'UNKNOWN ERROR CODE ('//trim(adjustl(errcode))//')'
end select
message(1) = 'clAmdBlas '//trim(name)//' '//trim(errcode)
call messages_fatal(1)
POP_SUB(clblas_print_error)
end subroutine clblas_print_error
! ----------------------------------------------------
subroutine clfft_print_error(ierr, name)
integer, intent(in) :: ierr
character(len=*), intent(in) :: name
character(len=40) :: errcode
PUSH_SUB(clfft_print_error)
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
select case(ierr)
case(CLFFT_INVALID_GLOBAL_WORK_SIZE); errcode = 'CLFFT_INVALID_GLOBAL_WORK_SIZE'
case(CLFFT_INVALID_MIP_LEVEL); errcode = 'CLFFT_INVALID_MIP_LEVEL'
case(CLFFT_INVALID_BUFFER_SIZE); errcode = 'CLFFT_INVALID_BUFFER_SIZE'
case(CLFFT_INVALID_GL_OBJECT); errcode = 'CLFFT_INVALID_GL_OBJECT'
case(CLFFT_INVALID_OPERATION); errcode = 'CLFFT_INVALID_OPERATION'
case(CLFFT_INVALID_EVENT); errcode = 'CLFFT_INVALID_EVENT'
case(CLFFT_INVALID_EVENT_WAIT_LIST); errcode = 'CLFFT_INVALID_EVENT_WAIT_LIST'
case(CLFFT_INVALID_GLOBAL_OFFSET); errcode = 'CLFFT_INVALID_GLOBAL_OFFSET'
case(CLFFT_INVALID_WORK_ITEM_SIZE); errcode = 'CLFFT_INVALID_WORK_ITEM_SIZE'
case(CLFFT_INVALID_WORK_GROUP_SIZE); errcode = 'CLFFT_INVALID_WORK_GROUP_SIZE'
case(CLFFT_INVALID_WORK_DIMENSION); errcode = 'CLFFT_INVALID_WORK_DIMENSION'
case(CLFFT_INVALID_KERNEL_ARGS); errcode = 'CLFFT_INVALID_KERNEL_ARGS'
case(CLFFT_INVALID_ARG_SIZE); errcode = 'CLFFT_INVALID_ARG_SIZE'
case(CLFFT_INVALID_ARG_VALUE); errcode = 'CLFFT_INVALID_ARG_VALUE'
case(CLFFT_INVALID_ARG_INDEX); errcode = 'CLFFT_INVALID_ARG_INDEX'
case(CLFFT_INVALID_KERNEL); errcode = 'CLFFT_INVALID_KERNEL'
case(CLFFT_INVALID_KERNEL_DEFINITION); errcode = 'CLFFT_INVALID_KERNEL_DEFINITION'
case(CLFFT_INVALID_KERNEL_NAME); errcode = 'CLFFT_INVALID_KERNEL_NAME'
case(CLFFT_INVALID_PROGRAM_EXECUTABLE); errcode = 'CLFFT_INVALID_PROGRAM_EXECUTABLE'
case(CLFFT_INVALID_PROGRAM); errcode = 'CLFFT_INVALID_PROGRAM'
case(CLFFT_INVALID_BUILD_OPTIONS); errcode = 'CLFFT_INVALID_BUILD_OPTIONS'
case(CLFFT_INVALID_BINARY); errcode = 'CLFFT_INVALID_BINARY'
case(CLFFT_INVALID_SAMPLER); errcode = 'CLFFT_INVALID_SAMPLER'
case(CLFFT_INVALID_IMAGE_SIZE); errcode = 'CLFFT_INVALID_IMAGE_SIZE'
case(CLFFT_INVALID_IMAGE_FORMAT_DESCRIPTOR); errcode = 'CLFFT_INVALID_IMAGE_FORMAT_DESCRIPTOR'
case(CLFFT_INVALID_MEM_OBJECT); errcode = 'CLFFT_INVALID_MEM_OBJECT'
case(CLFFT_INVALID_HOST_PTR); errcode = 'CLFFT_INVALID_HOST_PTR'
case(CLFFT_INVALID_COMMAND_QUEUE); errcode = 'CLFFT_INVALID_COMMAND_QUEUE'
case(CLFFT_INVALID_QUEUE_PROPERTIES); errcode = 'CLFFT_INVALID_QUEUE_PROPERTIES'
case(CLFFT_INVALID_CONTEXT); errcode = 'CLFFT_INVALID_CONTEXT'
case(CLFFT_INVALID_DEVICE); errcode = 'CLFFT_INVALID_DEVICE'
case(CLFFT_INVALID_PLATFORM); errcode = 'CLFFT_INVALID_PLATFORM'
case(CLFFT_INVALID_DEVICE_TYPE); errcode = 'CLFFT_INVALID_DEVICE_TYPE'
case(CLFFT_INVALID_VALUE); errcode = 'CLFFT_INVALID_VALUE'
case(CLFFT_MAP_FAILURE); errcode = 'CLFFT_MAP_FAILURE'
case(CLFFT_BUILD_PROGRAM_FAILURE); errcode = 'CLFFT_BUILD_PROGRAM_FAILURE'
case(CLFFT_IMAGE_FORMAT_NOT_SUPPORTED); errcode = 'CLFFT_IMAGE_FORMAT_NOT_SUPPORTED'
case(CLFFT_IMAGE_FORMAT_MISMATCH); errcode = 'CLFFT_IMAGE_FORMAT_MISMATCH'
case(CLFFT_MEM_COPY_OVERLAP); errcode = 'CLFFT_MEM_COPY_OVERLAP'
case(CLFFT_PROFILING_INFO_NOT_AVAILABLE); errcode = 'CLFFT_PROFILING_INFO_NOT_AVAILABLE'
case(CLFFT_OUT_OF_HOST_MEMORY); errcode = 'CLFFT_OUT_OF_HOST_MEMORY'
case(CLFFT_OUT_OF_RESOURCES); errcode = 'CLFFT_OUT_OF_RESOURCES'
case(CLFFT_MEM_OBJECT_ALLOCATION_FAILURE); errcode = 'CLFFT_MEM_OBJECT_ALLOCATION_FAILURE'
case(CLFFT_COMPILER_NOT_AVAILABLE); errcode = 'CLFFT_COMPILER_NOT_AVAILABLE'
case(CLFFT_DEVICE_NOT_AVAILABLE); errcode = 'CLFFT_DEVICE_NOT_AVAILABLE'
case(CLFFT_DEVICE_NOT_FOUND); errcode = 'CLFFT_DEVICE_NOT_FOUND'
case(CLFFT_SUCCESS); errcode = 'CLFFT_SUCCESS'
case(CLFFT_BUGCHECK); errcode = 'CLFFT_BUGCHECK'
case(CLFFT_NOTIMPLEMENTED); errcode = 'CLFFT_NOTIMPLEMENTED'
case(CLFFT_FILE_NOT_FOUND); errcode = 'CLFFT_FILE_NOT_FOUND'
case(CLFFT_FILE_CREATE_FAILURE); errcode = 'CLFFT_FILE_CREATE_FAILURE'
case(CLFFT_VERSION_MISMATCH); errcode = 'CLFFT_VERSION_MISMATCH'
case(CLFFT_INVALID_PLAN); errcode = 'CLFFT_INVALID_PLAN'
case(CLFFT_DEVICE_NO_DOUBLE); errcode = 'CLFFT_DEVICE_NO_DOUBLE'
case(CLFFT_ENDSTATUS); errcode = 'CLFFT_ENDSTATUS'
case default
write(errcode, '(i10)') ierr
errcode = 'UNKNOWN ERROR CODE ('//trim(adjustl(errcode))//')'
end select
message(1) = 'clAmdFft '//trim(name)//' '//trim(errcode)
call messages_fatal(1)
POP_SUB(clfft_print_error)
end subroutine clfft_print_error
! ----------------------------------------------------
logical function f90_cl_device_has_extension(device, extension) result(has)
type(cl_device_id), intent(inout) :: device
character(len=*), intent(in) :: extension
integer :: cl_status
character(len=2048) :: all_extensions
call clGetDeviceInfo(device, CL_DEVICE_EXTENSIONS, all_extensions, cl_status)
has = index(all_extensions, extension) /= 0
end function f90_cl_device_has_extension
! ---------------------------------------------------------
integer pure function opencl_pad(size, blk) result(pad)
integer, intent(in) :: size
integer, intent(in) :: blk
integer :: mm
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
mm = mod(size, blk)
if(mm == 0) then
pad = size
else
pad = size + blk - mm
end if
end function opencl_pad
! ----------------------------------------------------
subroutine opencl_set_buffer_to_zero(buffer, type, nval, offset)
type(opencl_mem_t), intent(inout) :: buffer
type(type_t), intent(in) :: type
integer, intent(in) :: nval
integer, optional, intent(in) :: offset
integer :: nval_real, bsize
PUSH_SUB(opencl_set_buffer_to_zero)
ASSERT(type == TYPE_CMPLX .or. type == TYPE_FLOAT)
nval_real = nval*types_get_size(type)/8
call opencl_set_kernel_arg(set_zero, 0, nval_real)
call opencl_set_kernel_arg(set_zero, 1, optional_default(offset, 0)*types_get_size(type)/8)
call opencl_set_kernel_arg(set_zero, 2, buffer)
bsize = opencl_kernel_workgroup_size(set_zero)
call opencl_kernel_run(set_zero, (/ opencl_pad(nval_real, bsize) /), (/ bsize /))
call opencl_finish()
POP_SUB(opencl_set_buffer_to_zero)
end subroutine opencl_set_buffer_to_zero
! ----------------------------------------------------
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
subroutine opencl_check_bandwidth()
integer :: itime
integer, parameter :: times = 10
integer :: size
real(8) :: time, stime
real(8) :: read_bw, write_bw
type(opencl_mem_t) :: buff
FLOAT, allocatable :: data(:)
call messages_new_line()
call messages_write('Info: Benchmarking the bandwidth between main memory and device memory')
call messages_new_line()
call messages_info()
call messages_write(' Buffer size Read bw Write bw')
call messages_new_line()
call messages_write(' [MiB] [MiB/s] [MiB/s]')
call messages_info()
size = 15000
do
SAFE_ALLOCATE(data(1:size))
call opencl_create_buffer(buff, CL_MEM_READ_WRITE, TYPE_FLOAT, size)
stime = loct_clock()
do itime = 1, times
call opencl_write_buffer(buff, size, data)
call opencl_finish()
end do
time = (loct_clock() - stime)/dble(times)
write_bw = dble(size)*8.0_8/time
stime = loct_clock()
do itime = 1, times
call opencl_read_buffer(buff, size, data)
call opencl_finish()
time = (loct_clock() - stime)/dble(times)
read_bw = dble(size)*8.0_8/time
call messages_write(size*8.0_8/1024.0**2)
call messages_write(write_bw/1024.0**2, fmt = '(f10.1)')
call messages_write(read_bw/1024.0**2, fmt = '(f10.1)')
call messages_info()
call opencl_release_buffer(buff)
SAFE_DEALLOCATE_A(data)
size = int(size*2.0)
if(size > 50000000) exit
end do
end subroutine opencl_check_bandwidth
! ----------------------------------------------------
logical pure function opencl_use_shared_mem() result(use_shared_mem)
use_shared_mem = shared_mem
end function opencl_use_shared_mem
#include "undef.F90"
#include "real.F90"
#include "opencl_inc.F90"
#include "undef.F90"
#include "complex.F90"
#include "opencl_inc.F90"
#include "undef.F90"
#include "real_single.F90"
#include "opencl_inc.F90"
#include "undef.F90"
#include "complex_single.F90"
#include "opencl_inc.F90"
#include "undef.F90"
#include "integer.F90"
#include "opencl_inc.F90"
#endif
end module opencl_m
!! Local Variables:
!! mode: f90
!! coding: utf-8
!! End: