fix: noconfirm auto-selects first AUR match
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
exe = executable('prog', 'prog.cc', dependencies: dependency('cuda'))
|
||||
test('cudatest', exe)
|
||||
@@ -0,0 +1,19 @@
|
||||
#include <cuda_runtime.h>
|
||||
#include <iostream>
|
||||
|
||||
int cuda_devices(void) {
|
||||
int result = 0;
|
||||
cudaGetDeviceCount(&result);
|
||||
return result;
|
||||
}
|
||||
|
||||
int main(void) {
|
||||
int n = cuda_devices();
|
||||
if (n == 0) {
|
||||
std::cout << "No CUDA hardware found. Exiting.\n";
|
||||
return 0;
|
||||
}
|
||||
|
||||
std::cout << "Found " << n << " CUDA devices.\n";
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user