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 332 B

12345678910111213141516
  1. #include "./fixture.h"
  2. #include "test/cuda/utils.h"
  3. #include <cuda_runtime_api.h>
  4. #include <gtest/gtest.h>
  5. void MegcoreCUDA::SetUp() {
  6. cuda_check(cudaGetDeviceCount(&nr_devices_));
  7. printf("We have %d GPUs\n", nr_devices_);
  8. }
  9. void MegcoreCUDA::TearDown() {
  10. cuda_check(cudaDeviceReset());
  11. }
  12. // vim: syntax=cpp.doxygen