Skip to content

Commit

Permalink
Issue #92: activate CUDA for NMI test
Browse files Browse the repository at this point in the history
  • Loading branch information
mmodat committed Jul 24, 2023
1 parent 4f29800 commit cd09926
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion niftyreg_build_version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
288
289
5 changes: 2 additions & 3 deletions reg-test/reg_test_nmi.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// OpenCL and CUDA are not supported for this test yet
#undef _USE_OPENCL
#undef _USE_CUDA

#include "reg_test_common.h"
#include "_reg_tools.h"
Expand All @@ -24,12 +23,12 @@ class NMITest {
std::uniform_real_distribution<float> distr(2, 65);

// Create reference and floating 2D images
vector<NiftiImage::dim_t> dim{ 16, 16 };
vector<NiftiImage::dim_t> dim{ 60, 62 };
NiftiImage reference2d(dim, NIFTI_TYPE_FLOAT32);
NiftiImage floating2d(dim, NIFTI_TYPE_FLOAT32);

// Create reference and floating 3D images
dim.push_back(16);
dim.push_back(64);
NiftiImage reference3d(dim, NIFTI_TYPE_FLOAT32);
NiftiImage floating3d(dim, NIFTI_TYPE_FLOAT32);

Expand Down

0 comments on commit cd09926

Please sign in to comment.