Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake -DGGML_CLBLAST=ON .. ERROR #216

Closed
vicwer opened this issue May 30, 2023 · 1 comment
Closed

cmake -DGGML_CLBLAST=ON .. ERROR #216

vicwer opened this issue May 30, 2023 · 1 comment

Comments

@vicwer
Copy link

vicwer commented May 30, 2023

git clone https://github.com/CNugteren/CLBlast.git
cd CLBlast/ && mkdir build && cd build/ && cmake .. && make -j8 && make install
cd ../../ggml/build
cmake -DGGML_CLBLAST=ON ..
make

ERROR:

Scanning dependencies of target ggml
[  1%] Building C object src/CMakeFiles/ggml.dir/ggml.c.o
[  3%] Building C object src/CMakeFiles/ggml.dir/ggml-opencl.c.o
/root/ggml/src/ggml-opencl.c: In function ‘ggml_cl_init’:
/root/ggml/src/ggml-opencl.c:214:5: warning: ‘clCreateCommandQueue’ is deprecated [-Wdeprecated-declarations]
  214 |     queue = clCreateCommandQueue(context, device, CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE, &err);
      |     ^~~~~
In file included from /usr/include/CL/opencl.h:47,
                 from /usr/local/include/clblast_c.h:22,
                 from /root/ggml/src/ggml-opencl.c:4:
/usr/include/CL/cl.h:1443:1: note: declared here
 1443 | clCreateCommandQueue(cl_context                     /* context */,
      | ^~~~~~~~~~~~~~~~~~~~
/root/ggml/src/ggml-opencl.c: At top level:
/root/ggml/src/ggml-opencl.c:251:20: warning: ISO C forbids forward references to ‘enum’ types [-Wpedantic]
  251 |         const enum ggml_blas_order order, const enum ggml_blas_op trans_a, const enum ggml_blas_op trans_b,
      |                    ^~~~~~~~~~~~~~~
/root/ggml/src/ggml-opencl.c:251:54: warning: ISO C forbids forward references to ‘enum’ types [-Wpedantic]
  251 |         const enum ggml_blas_order order, const enum ggml_blas_op trans_a, const enum ggml_blas_op trans_b,
      |                                                      ^~~~~~~~~~~~
/root/ggml/src/ggml-opencl.c:251:87: warning: ISO C forbids forward references to ‘enum’ types [-Wpedantic]
  251 |         const enum ggml_blas_order order, const enum ggml_blas_op trans_a, const enum ggml_blas_op trans_b,
      |                                                                                       ^~~~~~~~~~~~
/root/ggml/src/ggml-opencl.c:251:54: warning: ‘enum ggml_blas_op’ declared inside parameter list will not be visible outside of this definition or declaration
  251 |         const enum ggml_blas_order order, const enum ggml_blas_op trans_a, const enum ggml_blas_op trans_b,
      |                                                      ^~~~~~~~~~~~
/root/ggml/src/ggml-opencl.c:251:20: warning: ‘enum ggml_blas_order’ declared inside parameter list will not be visible outside of this definition or declaration
  251 |         const enum ggml_blas_order order, const enum ggml_blas_op trans_a, const enum ggml_blas_op trans_b,
      |                    ^~~~~~~~~~~~~~~
/root/ggml/src/ggml-opencl.c:251:36: error: parameter 1 (‘order’) has incomplete type
  251 |         const enum ggml_blas_order order, const enum ggml_blas_op trans_a, const enum ggml_blas_op trans_b,
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
/root/ggml/src/ggml-opencl.c:251:67: error: parameter 2 (‘trans_a’) has incomplete type
  251 |         const enum ggml_blas_order order, const enum ggml_blas_op trans_a, const enum ggml_blas_op trans_b,
      |                                           ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
/root/ggml/src/ggml-opencl.c:251:100: error: parameter 3 (‘trans_b’) has incomplete type
  251 |         const enum ggml_blas_order order, const enum ggml_blas_op trans_a, const enum ggml_blas_op trans_b,
      |                                                                            ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
/root/ggml/src/ggml-opencl.c:250:6: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
  250 | void ggml_cl_sgemm_wrapper(
      |      ^~~~~~~~~~~~~~~~~~~~~
/root/ggml/src/ggml-opencl.c: In function ‘ggml_cl_sgemm_wrapper’:
/root/ggml/src/ggml-opencl.c:251:36: warning: unused parameter ‘order’ [-Wunused-parameter]
  251 |         const enum ggml_blas_order order, const enum ggml_blas_op trans_a, const enum ggml_blas_op trans_b,
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
/root/ggml/src/ggml-opencl.c:251:67: warning: unused parameter ‘trans_a’ [-Wunused-parameter]
  251 |         const enum ggml_blas_order order, const enum ggml_blas_op trans_a, const enum ggml_blas_op trans_b,
      |                                           ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
/root/ggml/src/ggml-opencl.c:251:100: warning: unused parameter ‘trans_b’ [-Wunused-parameter]
  251 |         const enum ggml_blas_order order, const enum ggml_blas_op trans_a, const enum ggml_blas_op trans_b,
      |                                                                            ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
make[2]: *** [src/CMakeFiles/ggml.dir/build.make:76: src/CMakeFiles/ggml.dir/ggml-opencl.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:362: src/CMakeFiles/ggml.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
@apcameron
Copy link
Contributor

This is similar to #205

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants