CUDAWrapper: Move select device to dedicated wrapper
This commit is contained in:
1 parent
5ca23ff64f
commit
669b2d9358
7 files changed
+69
-29
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user