CUDAWrapper: Move select device to dedicated wrapper

This commit is contained in:
2023-07-27 21:30:10 +02:00
parent 5ca23ff64f
commit 669b2d9358
7 changed files with 69 additions and 29 deletions
+14
View File
@@ -0,0 +1,14 @@
// Copyright (2019-2023) Paul Scherrer Institute
// SPDX-License-Identifier: GPL-3.0-or-later
#ifndef JFJOCH_USE_CUDA
#include "CUDAWrapper.h"
int32_t get_gpu_count() {
return 0;
}
void set_gpu_count(int32_t dev_id) {}
#endif