Skip to content

Commit cb71475

Browse files
committed
jit::use_cuda is a function.
1 parent ad0f57f commit cb71475

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎graph_tests/pic_test.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ template<std::floating_point T> void run_interpolation_test() {
8888
const T x = work.check_value(i, ions[0].x);
8989
const T received = work.check_value(i, field);
9090
const T diff = func(x) - received;
91-
if constexpr (jit::use_cuda) {
91+
if constexpr (jit::use_cuda()) {
9292
if constexpr (std::same_as<T, float>) {
9393
assert(diff*diff < static_cast<T> (1.22E-4) &&
9494
"Profile not equal ±1.22E-4");
@@ -111,7 +111,7 @@ template<std::floating_point T> void run_interpolation_test() {
111111
const T x = work.check_value(i, ions[0].x);
112112
const T received = work.check_value(i, field);
113113
const T diff = func(x) - received;
114-
if constexpr (jit::use_cuda) {
114+
if constexpr (jit::use_cuda()) {
115115
if constexpr (std::same_as<T, float>) {
116116
assert(diff*diff < static_cast<T> (3.1E-4) &&
117117
"Profile not equal ±3.1E-4");

0 commit comments

Comments
 (0)