Skip to content

Commit

Permalink
clang-format some more files
Browse files Browse the repository at this point in the history
  • Loading branch information
adegomme committed Jan 29, 2025
1 parent ae62b28 commit b5f876a
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion cmake/FindARMPL.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#===============================================================================
# Copyright 2022 SiPearl
# Copyright 2025 SiPearl
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion include/oneapi/math/detail/backend_selector_predicates.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ inline void backend_selector_precondition<backend::mklcpu>(sycl::queue& queue) {
#endif
}

template<>
template <>
inline void backend_selector_precondition<backend::armpl>(sycl::queue& queue) {
#ifndef ONEMKL_DISABLE_PREDICATES
#ifdef __HIPSYCL__
Expand Down
2 changes: 1 addition & 1 deletion src/blas/backends/armpl/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#===============================================================================
# Copyright 2024 SiPearl
# Copyright 2025 SiPearl
# Copyright 2020-2021 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
7 changes: 4 additions & 3 deletions tests/unit_tests/include/test_helper.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,17 @@
if (d->get_info<sycl::info::device::double_fp_config>().size() == 0) \
GTEST_SKIP() << "Double precision is not supported on the device"

#if defined(ONEMATH_ENABLE_MKLCPU_BACKEND) || defined(ONEMATH_ENABLE_NETLIB_BACKEND) || defined (ONEMATH_ENABLE_ARMPL_BACKEND)
#if defined(ONEMATH_ENABLE_MKLCPU_BACKEND) || defined(ONEMATH_ENABLE_NETLIB_BACKEND) || \
defined(ONEMATH_ENABLE_ARMPL_BACKEND)
#ifdef ONEMATH_ENABLE_MKLCPU_BACKEND
#define TEST_RUN_INTELCPU_SELECT_NO_ARGS(q, func) \
func(oneapi::math::backend_selector<oneapi::math::backend::mklcpu>{ q })
#define TEST_RUN_INTELCPU_SELECT(q, func, ...) \
func(oneapi::math::backend_selector<oneapi::math::backend::mklcpu>{ q }, __VA_ARGS__)
#elif defined (ONEMATH_ENABLE_NETLIB_BACKEND)
#elif defined(ONEMATH_ENABLE_NETLIB_BACKEND)
#define TEST_RUN_INTELCPU_SELECT(q, func, ...) \
func(oneapi::math::backend_selector<oneapi::math::backend::netlib>{ q }, __VA_ARGS__)
#elif defined (ONEMATH_ENABLE_ARMPL_BACKEND)
#elif defined(ONEMATH_ENABLE_ARMPL_BACKEND)
#define TEST_RUN_INTELCPU_SELECT(q, func, ...) \
func(oneapi::math::backend_selector<oneapi::math::backend::armpl>{ q }, __VA_ARGS__)
#endif
Expand Down
6 changes: 3 additions & 3 deletions tests/unit_tests/main_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@ int main(int argc, char** argv) {
if (unique_devices.find(dev.get_info<sycl::info::device::name>()) ==
unique_devices.end()) {
unique_devices.insert(dev.get_info<sycl::info::device::name>());
#if !defined(ONEMATH_ENABLE_MKLCPU_BACKEND) && \
!defined(ONEMATH_ENABLE_GENERIC_BLAS_BACKEND_INTEL_CPU) && \
!defined(ONEMATH_ENABLE_PORTFFT_BACKEND) && !defined(ONEMATH_ENABLE_NETLIB_BACKEND) &&\
#if !defined(ONEMATH_ENABLE_MKLCPU_BACKEND) && \
!defined(ONEMATH_ENABLE_GENERIC_BLAS_BACKEND_INTEL_CPU) && \
!defined(ONEMATH_ENABLE_PORTFFT_BACKEND) && !defined(ONEMATH_ENABLE_NETLIB_BACKEND) && \
!defined(ONEMATH_ENABLE_ARMPL_BACKEND)
if (dev.is_cpu())
continue;
Expand Down

0 comments on commit b5f876a

Please sign in to comment.