mirror of
https://github.com/microsoft/mscclpp.git
synced 2026-05-11 17:00:22 +00:00
16 lines
288 B
Plaintext
16 lines
288 B
Plaintext
// Copyright (c) Microsoft Corporation.
|
|
// Licensed under the MIT license.
|
|
|
|
#include <hip/hip_runtime.h>
|
|
|
|
__global__ void kernel() {}
|
|
|
|
int main() {
|
|
int cnt;
|
|
hipError_t err = hipGetDeviceCount(&cnt);
|
|
if (err != hipSuccess || cnt == 0) {
|
|
return 1;
|
|
}
|
|
return 0;
|
|
}
|