Skip to content

Commit 5069528

Browse files
committed
new line
1 parent 670ca40 commit 5069528

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

stan/math/opencl/opencl_context.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include <stan/math/opencl/err/check_opencl.hpp>
1515

1616
#include <CL/opencl.hpp>
17+
#include <tbb/concurrent_vector.h>
1718
#include <string>
1819
#include <iostream>
1920
#include <fstream>
@@ -207,7 +208,7 @@ class opencl_context_base {
207208
* The API to access the methods and values in opencl_context_base
208209
*/
209210
class opencl_context {
210-
std::vector<cl::Kernel*> kernel_caches_;
211+
tbb::concurrent_vector<cl::Kernel*> kernel_caches_;
211212

212213
public:
213214
opencl_context() = default;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,4 +187,4 @@ TEST(ProbDistributionsDoubleExpModNormalLccdf, opencl_matches_cpu_big) {
187187
}
188188
} // namespace exp_mod_normal_lccdf_test
189189

190-
#endif
190+
#endif

0 commit comments

Comments
 (0)