Skip to content

Commit 1ed12c7

Browse files
authored
[RNG] Fix mklcpu backend kernel names and clang-format to curand (uxlfoundation#90)
* [RNG] fix similar kernel names in mklcpu backend * [RNG] apply clang-format for curand backend * [RNG] apply clang-format for curand backend * [Cmake] change standard from c++14 to c++17 * remove CXX standard from cmake
1 parent 1539bca commit 1ed12c7

File tree

9 files changed

+1776
-1939
lines changed

9 files changed

+1776
-1939
lines changed

CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ option(BUILD_SHARED_LIBS "Build dynamic libraries" ON)
4848

4949
# Override default CXX compile/link lines for Windows after project
5050
if(WIN32)
51-
set(CMAKE_CXX_STANDARD 14)
5251
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-function -w")
5352
foreach (flag_var
5453
CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_RELEASE

include/oneapi/mkl/rng/detail/curand/onemkl_rng_curand.hpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,21 +70,21 @@ namespace mkl {
7070
namespace rng {
7171
namespace curand {
7272

73-
ONEMKL_EXPORT oneapi::mkl::rng::detail::engine_impl* create_philox4x32x10(
74-
cl::sycl::queue queue, std::uint64_t seed);
73+
ONEMKL_EXPORT oneapi::mkl::rng::detail::engine_impl* create_philox4x32x10(cl::sycl::queue queue,
74+
std::uint64_t seed);
7575

7676
ONEMKL_EXPORT oneapi::mkl::rng::detail::engine_impl* create_philox4x32x10(
7777
cl::sycl::queue queue, std::initializer_list<std::uint64_t> seed);
7878

79-
ONEMKL_EXPORT oneapi::mkl::rng::detail::engine_impl* create_mrg32k3a(
80-
cl::sycl::queue queue, std::uint32_t seed);
79+
ONEMKL_EXPORT oneapi::mkl::rng::detail::engine_impl* create_mrg32k3a(cl::sycl::queue queue,
80+
std::uint32_t seed);
8181

8282
ONEMKL_EXPORT oneapi::mkl::rng::detail::engine_impl* create_mrg32k3a(
8383
cl::sycl::queue queue, std::initializer_list<std::uint32_t> seed);
8484

85-
} // namespace curand
86-
} // namespace rng
87-
} // namespace mkl
88-
} // namespace oneapi
85+
} // namespace curand
86+
} // namespace rng
87+
} // namespace mkl
88+
} // namespace oneapi
8989

90-
#endif //_ONEMKL_RNG_CURAND_HPP_
90+
#endif //_ONEMKL_RNG_CURAND_HPP_

0 commit comments

Comments
 (0)