Skip to content

Commit

Permalink
fix: add missing OpenCL dep if OpenCL found
Browse files Browse the repository at this point in the history
  • Loading branch information
mspronesti committed Mar 2, 2022
1 parent 9352147 commit c70f10d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 2 additions & 0 deletions baylib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ set (src_cuda
if(CMAKE_CUDA_COMPILER)
list(APPEND src ${src_cuda})
endif()

if(BAYLIB_OPENCL)
list(APPEND BAYLIB_REQUIRED_LIBS OpenCL)
list(APPEND src ${src_opencl})
endif()

Expand Down
4 changes: 1 addition & 3 deletions test/cow_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include <gtest/gtest.h>
#include <baylib/smile_utils/smile_utils.hpp>
#include <baylib/probability/condition.hpp>
#include <baylib/smile_utils/smile_utils.hpp>
#include <baylib/inference/gibbs_sampling.hpp>
#include <baylib/inference/likelihood_weighting.hpp>

Expand Down Expand Up @@ -35,8 +34,7 @@ class cow_tests : public ::testing::Test {
A,
B,
C,
D,
E
D
};


Expand Down

0 comments on commit c70f10d

Please sign in to comment.