ihaque / memtestCL

OpenCL memory tester for GPUs
Other
125 stars 27 forks source link

Initialize device counts to 0. #9

Closed jvesely closed 4 years ago

jvesely commented 6 years ago

clGetDeviceIDs returns CL_DEVICE_NOT_FOUND when a device type is not present. Since the code does not check the return value, initialize counts to 0.