We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9270d9d commit 47e9237Copy full SHA for 47e9237
tools/mtmd/clip.cpp
@@ -385,12 +385,12 @@ struct clip_ctx {
385
throw std::runtime_error("failed to initialize CPU backend");
386
}
387
backend = nullptr;
388
- if(ctx_params.use_gpu) {
+ if (ctx_params.use_gpu) {
389
auto backend_name = std::getenv("MTMD_BACKEND_DEVICE");
390
- if(backend_name != nullptr) {
+ if (backend_name != nullptr) {
391
backend = ggml_backend_init_by_name(backend_name, nullptr);
392
393
- if(!backend){
+ if (!backend) {
394
backend = ggml_backend_init_by_type(GGML_BACKEND_DEVICE_TYPE_GPU, nullptr);
395
396
0 commit comments