Убрал поддиректорию

This commit is contained in:
2025-12-02 12:00:42 +00:00
parent 8b0c57db63
commit 49b18bc199
15 changed files with 1 additions and 1 deletions

8
src/gpu_plugin.cu Normal file
View File

@@ -0,0 +1,8 @@
#include <cuda_runtime.h>
extern "C" int gpu_is_available() {
int n = 0;
cudaError_t err = cudaGetDeviceCount(&n);
if (err != cudaSuccess) return 0;
return (n > 0) ? 1 : 0;
}