diff --git a/ggml/include/ggml-opencl2.h b/ggml/include/ggml-opencl2.h index 837c1cc02..2686d0ee7 100644 --- a/ggml/include/ggml-opencl2.h +++ b/ggml/include/ggml-opencl2.h @@ -11,16 +11,6 @@ extern "C" { #endif -#define CL_CHECK(err) \ - do { \ - cl_int err_ = (err); \ - if (err_ != CL_SUCCESS) { \ - fprintf(stderr, "ggml_opencl: %s error %d at %s:%d\n", \ - #err, err_, __FILE__, __LINE__); \ - GGML_ASSERT(0); \ - } \ - } while (0) - // // backend API // diff --git a/ggml/src/ggml-opencl2/ggml-opencl2.cpp b/ggml/src/ggml-opencl2/ggml-opencl2.cpp index 6df5625ad..f71f9e71a 100644 --- a/ggml/src/ggml-opencl2/ggml-opencl2.cpp +++ b/ggml/src/ggml-opencl2/ggml-opencl2.cpp @@ -35,6 +35,16 @@ #define GGML_CL_MAX_NODES 16384 +#define CL_CHECK(err) \ + do { \ + cl_int err_ = (err); \ + if (err_ != CL_SUCCESS) { \ + fprintf(stderr, "ggml_opencl: %s error %d at %s:%d\n", \ + #err, err_, __FILE__, __LINE__); \ + GGML_ASSERT(0); \ + } \ + } while (0) + //------------------------------------------------------------------------------ // OpenCL //------------------------------------------------------------------------------