Skip to content

Commit

Permalink
Rename exitSansCUDADevices to requireCUDADevices (#423)
Browse files Browse the repository at this point in the history
  • Loading branch information
fwyzard committed Jan 15, 2021
1 parent ce2e823 commit 57c85b4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions CUDADataFormats/Track/test/TrajectoryStateSOA_t.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ __global__ void testTSSoA(TS* pts, int n) {
}

#ifdef __CUDACC__
#include "HeterogeneousCore/CUDAUtilities/interface/exitSansCUDADevices.h"
#include "HeterogeneousCore/CUDAUtilities/interface/requireCUDADevices.h"
#include "HeterogeneousCore/CUDAUtilities/interface/cudaCheck.h"
#endif

int main() {
#ifdef __CUDACC__
exitSansCUDADevices();
requireCUDADevices();
#endif

TS ts;
Expand Down
4 changes: 2 additions & 2 deletions RecoPixelVertexing/PixelTrackFitting/test/testEigenGPU.cu
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <Eigen/Eigenvalues>

#include "HeterogeneousCore/CUDAUtilities/interface/cudaCheck.h"
#include "HeterogeneousCore/CUDAUtilities/interface/exitSansCUDADevices.h"
#include "HeterogeneousCore/CUDAUtilities/interface/requireCUDADevices.h"

#ifdef USE_BL
#include "RecoPixelVertexing/PixelTrackFitting/interface/BrokenLine.h"
Expand Down Expand Up @@ -329,7 +329,7 @@ void testFit() {
}

int main(int argc, char* argv[]) {
exitSansCUDADevices();
requireCUDADevices();

testFit<4>();
testFit<3>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <Eigen/Eigenvalues>

#include "HeterogeneousCore/CUDAUtilities/interface/cudaCheck.h"
#include "HeterogeneousCore/CUDAUtilities/interface/exitSansCUDADevices.h"
#include "HeterogeneousCore/CUDAUtilities/interface/requireCUDADevices.h"
#include "test_common.h"

using namespace Eigen;
Expand Down Expand Up @@ -215,7 +215,7 @@ void testEigenvalues() {
}

int main(int argc, char *argv[]) {
exitSansCUDADevices();
requireCUDADevices();

testEigenvalues();
testInverse3x3();
Expand Down

0 comments on commit 57c85b4

Please sign in to comment.