mirror of
https://github.com/microsoft/mscclpp.git
synced 2026-05-12 09:17:06 +00:00
16 lines
274 B
Plaintext
16 lines
274 B
Plaintext
// Copyright (c) Microsoft Corporation.
|
|
// Licensed under the MIT license.
|
|
|
|
#include <cuda_runtime.h>
|
|
|
|
__global__ void kernel() {}
|
|
|
|
int main() {
|
|
int cnt;
|
|
cudaError_t err = cudaGetDeviceCount(&cnt);
|
|
if (err != cudaSuccess || cnt == 0) {
|
|
return 1;
|
|
}
|
|
return 0;
|
|
}
|