Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use appropiately qualified names in blas and rng #105

Merged
merged 5 commits into from
Aug 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions include/oneapi/mkl/detail/backend_selector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
namespace oneapi {
namespace mkl {

using namespace cl;
mkrainiuk marked this conversation as resolved.
Show resolved Hide resolved

template <backend Backend>
class backend_selector {
public:
Expand Down
2 changes: 2 additions & 0 deletions src/rng/backends/mklcpu/mrg32k3a.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ namespace mkl {
namespace rng {
namespace mklcpu {

using namespace cl;
mmeterel marked this conversation as resolved.
Show resolved Hide resolved

class mrg32k3a_impl : public oneapi::mkl::rng::detail::engine_impl {
public:
mrg32k3a_impl(cl::sycl::queue queue, std::uint32_t seed)
Expand Down
2 changes: 2 additions & 0 deletions src/rng/backends/mklcpu/philox4x32x10.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ namespace mkl {
namespace rng {
namespace mklcpu {

using namespace cl;

class philox4x32x10_impl : public oneapi::mkl::rng::detail::engine_impl {
public:
philox4x32x10_impl(cl::sycl::queue queue, std::uint64_t seed)
Expand Down
4 changes: 2 additions & 2 deletions tests/unit_tests/rng/include/rng_test_common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,12 @@ class rng_test {
// method to call any tests, switch between rt and ct
template <typename... Args>
int operator()(cl::sycl::device* dev, Args... args) {
auto exception_handler = [](sycl::exception_list exceptions) {
auto exception_handler = [](cl::sycl::exception_list exceptions) {
for (std::exception_ptr const& e : exceptions) {
try {
std::rethrow_exception(e);
}
catch (sycl::exception const& e) {
catch (cl::sycl::exception const& e) {
std::cout << "Caught asynchronous SYCL exception during ASUM:\n"
<< e.what() << std::endl
<< "OpenCL status: " << e.get_cl_code() << std::endl;
Expand Down
1 change: 1 addition & 0 deletions tests/unit_tests/rng/include/statistics_check_test.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@

#define POISSON_ARGS 0.5

using namespace cl;
mmeterel marked this conversation as resolved.
Show resolved Hide resolved
template <typename Distr, typename Engine>
class statistics_test {
public:
Expand Down