diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2017-01-24 09:10:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-24 09:10:35 +0100 |
commit | e943fe77d64f42ed1e57c9919de8ca6787760f2b (patch) | |
tree | 9da420f6259d2e7a5aafffd530d6a84dea8402e3 /samples/sgemm.cpp | |
parent | 2e4f6e16098d36d0572769a1092d1e54cdb6d4ea (diff) | |
parent | 46a59eb8821e3c92db7be347fca099405246d9ec (diff) |
Merge pull request #131 from intelfx/misc
Assorted minor fixes
Diffstat (limited to 'samples/sgemm.cpp')
-rw-r--r-- | samples/sgemm.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/samples/sgemm.cpp b/samples/sgemm.cpp index 401ecff8..b960865b 100644 --- a/samples/sgemm.cpp +++ b/samples/sgemm.cpp @@ -20,6 +20,9 @@ #include <chrono> #include <vector> +#define CL_USE_DEPRECATED_OPENCL_1_1_APIS // to disable deprecation warnings +#define CL_USE_DEPRECATED_OPENCL_1_2_APIS // to disable deprecation warnings + // Includes the C++ OpenCL API. If not yet available, it can be found here: // https://www.khronos.org/registry/cl/api/1.1/cl.hpp #include "cl.hpp" @@ -103,7 +106,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 SGEMM in %.3lf ms with status %d\n", time_ms, status); + printf("Completed SGEMM in %.3lf ms with status %d\n", time_ms, static_cast<int>(status)); return 0; } |