You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

fixture.cpp 365 B

123456789101112131415161718
  1. #include "hcc_detail/hcc_defs_prologue.h"
  2. #include "./fixture.h"
  3. #include "test/rocm/utils.h"
  4. #include <gtest/gtest.h>
  5. #include "hip_header.h"
  6. void MegcoreROCM::SetUp() {
  7. hip_check(hipGetDeviceCount(&nr_devices_));
  8. printf("We have %d GPUs\n", nr_devices_);
  9. }
  10. void MegcoreROCM::TearDown() {
  11. hip_check(hipDeviceReset());
  12. }
  13. // vim: syntax=cpp.doxygen