Skip to content

Commit

Permalink
[CUSOLVER] workaround for issue uxlfoundation#216
Browse files Browse the repository at this point in the history
  • Loading branch information
ericlars committed Jul 30, 2022
1 parent 61312ed commit 1bc61ee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/lapack/backends/cusolver/cusolver_task.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ static inline void host_task_internal(H &cgh, sycl::queue queue, F f) {
template <typename H, typename F>
static inline void onemkl_cusolver_host_task(H &cgh, sycl::queue queue, F f) {
(void)host_task_internal(cgh, queue, f);
queue.wait(); //temporary workaround for issue #216
}

} // namespace cusolver
Expand Down
4 changes: 4 additions & 0 deletions tests/unit_tests/lapack/include/lapack_gtest_suite.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,23 +140,27 @@ using ComplexDoublePrecisionUsm = std::complex<double>;

#define DEFINE_TEST_DEPENDENCY_REAL(SUITE) \
TEST_P(SUITE##DependencyUsm, RealSinglePrecision) { \
GTEST_SKIP(); \
test_log::padding = "[ ] "; \
EXPECT_TRUE( \
dependency_controller.run(::usm_dependency<RealSinglePrecisionUsm>, *GetParam())); \
} \
TEST_P(SUITE##DependencyUsm, RealDoublePrecision) { \
GTEST_SKIP(); \
test_log::padding = "[ ] "; \
EXPECT_TRUE( \
dependency_controller.run(::usm_dependency<RealDoublePrecisionUsm>, *GetParam())); \
}

#define DEFINE_TEST_DEPENDENCY_COMPLEX(SUITE) \
TEST_P(SUITE##DependencyUsm, ComplexSinglePrecision) { \
GTEST_SKIP(); \
test_log::padding = "[ ] "; \
EXPECT_TRUE( \
dependency_controller.run(::usm_dependency<ComplexSinglePrecisionUsm>, *GetParam())); \
} \
TEST_P(SUITE##DependencyUsm, ComplexDoublePrecision) { \
GTEST_SKIP(); \
test_log::padding = "[ ] "; \
EXPECT_TRUE( \
dependency_controller.run(::usm_dependency<ComplexDoublePrecisionUsm>, *GetParam())); \
Expand Down

0 comments on commit 1bc61ee

Please sign in to comment.