/* * Copyright (c) Advanced Micro Devices, Inc., or its affiliates. * * SPDX-License-Identifier: MIT */ #include int main() { int devCount = 0; hipError_t localError; localError = hipGetDeviceCount(&devCount); if (localError == hipSuccess) { printf("HIP Api returned hipSuccess"); } return devCount; }