diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2016-04-29 20:33:19 +0200 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2016-04-29 20:33:19 +0200 |
commit | 4f528b1730df1ffda9d396030cfc4c4ddf0203fb (patch) | |
tree | 3b1a7c29d3a08fb5963c5bf79d50c13e71cb3149 /samples/sgemm.cc | |
parent | d9b21d7f4920b115d3fe7f2e3cce1f89eb762c10 (diff) |
Added sample C programs for the SASUM and DGEMV routines
Diffstat (limited to 'samples/sgemm.cc')
-rw-r--r-- | samples/sgemm.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/samples/sgemm.cc b/samples/sgemm.cc index 2659d36c..5fe7490a 100644 --- a/samples/sgemm.cc +++ b/samples/sgemm.cc @@ -52,9 +52,9 @@ int main() { if (platforms.size() == 0 || platform_id >= platforms.size()) { return 1; } auto platform = platforms[platform_id]; - // Initializes the OpenCL device (note: example for GPU devices only) + // Initializes the OpenCL device auto devices = std::vector<cl::Device>(); - platform.getDevices(CL_DEVICE_TYPE_GPU, &devices); + platform.getDevices(CL_DEVICE_TYPE_ALL, &devices); if (devices.size() == 0 || device_id >= devices.size()) { return 1; } auto device = devices[device_id]; @@ -100,7 +100,7 @@ int main() { auto time_ms = std::chrono::duration<double,std::milli>(elapsed_time).count(); // Example completed. See "clblast.h" for status codes (0 -> success). - printf("Completed in %.3lf ms with status %d\n", time_ms, status); + printf("Completed SGEMM in %.3lf ms with status %d\n", time_ms, status); return 0; } |