Files
rocm-systems/projects/hip/tests/src/nvcc/Device/hipGetDevice.cpp
T

8 خطوط
155 B
C++

#include <hip/hip_runtime_api.h>
#include "test_common.h"
int main()
{
HIP_PRINT_STATUS(hipGetDevice(NULL));
HIP_PRINT_STATUS(hipGetDevice(0));
}