Skip to content

Commit

Permalink
Use appropiately qualified names in blas and rng (#105)
Browse files Browse the repository at this point in the history
* Use appropiately qualified names in blas and rng

* Revert changing to cl::sycl::half from half

* Apply clang-format

* Use original half qualification in test_common abs function

* remove unecessary changes
  • Loading branch information
sbalint98 committed Aug 19, 2021
1 parent edf3b57 commit c8c0d8f
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 2 deletions.
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;

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;

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;
print_error_code(e);
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;
template <typename Distr, typename Engine>
class statistics_test {
public:
Expand Down

0 comments on commit c8c0d8f

Please sign in to comment.