Skip to content

Commit 681fa17

Browse files
authored
Merge pull request #2610 from stan-dev/fix_opencl_header_includes
Fix including deprecated OpenCL header in tests
2 parents ce82581 + 18ee5c5 commit 681fa17

4 files changed

Lines changed: 1 addition & 4 deletions

File tree

test/unit/math/opencl/check_opencl_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#ifdef STAN_OPENCL
22
#include <stan/math/opencl/err.hpp>
3-
#include <CL/cl2.hpp>
3+
#include <CL/opencl.hpp>
44
#include <gtest/gtest.h>
55

66
TEST(ErrorHandlingOpenCL, checkThrows) {

test/unit/math/opencl/copy_test.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
#include <stan/math/opencl/copy.hpp>
66
#include <gtest/gtest.h>
77
#include <test/unit/util.hpp>
8-
#include <CL/cl2.hpp>
98
#include <algorithm>
109
#include <vector>
1110

test/unit/math/opencl/kernel_generator/operation_test.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#include <test/unit/util.hpp>
77
#include <Eigen/Dense>
88
#include <gtest/gtest.h>
9-
#include <CL/cl2.hpp>
109
#include <exception>
1110

1211
using Eigen::MatrixXd;

test/unit/math/opencl/rev/copy_test.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
#include <stan/math/opencl/rev.hpp>
33
#include <test/unit/util.hpp>
44
#include <gtest/gtest.h>
5-
#include <CL/cl2.hpp>
65
#include <algorithm>
76
#include <vector>
87

0 commit comments

Comments
 (0)