diff --git a/src/torch_api.F b/src/torch_api.F index ab0e36db9a..d3990e0aea 100644 --- a/src/torch_api.F +++ b/src/torch_api.F @@ -366,7 +366,7 @@ END FUNCTION torch_c_cuda_is_available res = torch_c_cuda_is_available() #else CPABORT("CP2K was compiled without Torch library.") - MARK_USED(res) + res = .FALSE. #endif END FUNCTION torch_cuda_is_available