enable cuda in pca

This commit is contained in:
Calvin Laurenson 2024-06-15 17:36:09 -07:00
parent 80321f4b49
commit 3c4df6ccf3
No known key found for this signature in database
GPG key ID: 2265749925202DAD

View file

@ -65,13 +65,13 @@ struct pca_model {
pca_model(struct ggml_tensor * t_input) { pca_model(struct ggml_tensor * t_input) {
// TODO: enable GPU support when support for GGML_OP_SQRT is added // TODO: enable GPU support when support for GGML_OP_SQRT is added
// #ifdef GGML_USE_CUDA #ifdef GGML_USE_CUDA
// fprintf(stderr, "%s: using CUDA backend\n", __func__); fprintf(stderr, "%s: using CUDA backend\n", __func__);
// backend = ggml_backend_cuda_init(0); // init device 0 backend = ggml_backend_cuda_init(0); // init device 0
// if (!backend) { if (!backend) {
// fprintf(stderr, "%s: ggml_backend_cuda_init() failed\n", __func__); fprintf(stderr, "%s: ggml_backend_cuda_init() failed\n", __func__);
// } }
// #endif #endif
// #ifdef GGML_USE_METAL // #ifdef GGML_USE_METAL
// fprintf(stderr, "%s: using Metal backend\n", __func__); // fprintf(stderr, "%s: using Metal backend\n", __func__);