enable cuda in pca
This commit is contained in:
parent
80321f4b49
commit
3c4df6ccf3
1 changed files with 7 additions and 7 deletions
|
@ -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__);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue