Skip to content

Commit 44fa2e0

Browse files
committed
[Code] Fix lib setup if cuda is not presented in the system
1 parent 5be89c7 commit 44fa2e0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

cubool/sources/cuda/cuda_backend.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ namespace cubool {
3232
mInstance = new Instance(initHints & CUBOOL_HINT_GPU_MEM_MANAGED);
3333
}
3434

35-
CHECK_RAISE_CRITICAL_ERROR(mInstance != nullptr, DeviceNotPresent, "No cuda compatible device in the system");
35+
// No device. Cannot init this backend
3636
}
3737

3838
void CudaBackend::finalize() {

cubool/tests/test_library_api.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@
2929
TEST(cuBoolVersion, Query) {
3030
int major;
3131
int minor;
32-
int version;
32+
int sub;
3333

34-
cuBool_Version_Get(&major, &minor, &version);
34+
cuBool_Version_Get(&major, &minor, &sub);
3535

3636
std::cout << "Major: " << major << std::endl;
3737
std::cout << "Minor: " << minor << std::endl;
38-
std::cout << "Version: " << version << std::endl;
38+
std::cout << "Version: " << sub << std::endl;
3939

40-
EXPECT_NE(version, 0);
40+
EXPECT_NE(major | minor | sub, 0);
4141
}
4242

4343
// Test cubool library instance creation and destruction

0 commit comments

Comments
 (0)