Skip to content

Commit 4b8b3de

Browse files
committed
Fix PR CI regressions
1 parent 1f86f16 commit 4b8b3de

6 files changed

Lines changed: 16 additions & 18 deletions

File tree

app/SYCL/sycl_example.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
#include <vector>
55

66
#if __has_include(<sycl/sycl.hpp>)
7-
#include <sycl/sycl.hpp>
8-
#define ITLABAI_HAS_SYCL_HEADERS 1
7+
# include <sycl/sycl.hpp>
8+
# define ITLABAI_HAS_SYCL_HEADERS 1
99
#endif
1010

1111
#include "graph/runtime_options.hpp"

app/SYCL/sycl_kernel.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#include <cstddef>
22

33
#if __has_include(<sycl/sycl.hpp>)
4-
#include <sycl/sycl.hpp>
5-
#define ITLABAI_HAS_SYCL_HEADERS 1
4+
# include <sycl/sycl.hpp>
5+
# define ITLABAI_HAS_SYCL_HEADERS 1
66
#endif
77

88
#if defined(ITLABAI_HAS_SYCL_HEADERS)

scripts/ci/sycl-configure.sh

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,26 @@ build_type="${1:?build type is required}"
55
sycl_targets="${2:?sycl targets are required}"
66
opencv_apps="${3:?opencv apps toggle is required}"
77

8-
launcher_args=()
8+
cmake_args=()
99
if [[ "${RUNNER_OS}" != "Windows" ]]; then
10-
launcher_args+=(
10+
cmake_args+=(
1111
-DCMAKE_C_COMPILER_LAUNCHER=ccache
1212
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
1313
)
1414
fi
1515

16-
openmp_args=()
1716
if [[ -n "${ITLABAI_OPENMP_FLAGS:-}" ]]; then
18-
openmp_args+=(-DOpenMP_CXX_FLAGS="${ITLABAI_OPENMP_FLAGS}")
17+
cmake_args+=(-DOpenMP_CXX_FLAGS="${ITLABAI_OPENMP_FLAGS}")
1918
fi
2019
if [[ -n "${ITLABAI_OPENMP_LIBRARY:-}" ]]; then
21-
openmp_args+=(
20+
cmake_args+=(
2221
-DOpenMP_CXX_LIB_NAMES=iomp5
2322
-DOpenMP_iomp5_LIBRARY="${ITLABAI_OPENMP_LIBRARY}"
2423
)
2524
fi
2625

2726
cmake -S . -B build -G Ninja \
28-
"${launcher_args[@]}" \
29-
"${openmp_args[@]}" \
27+
"${cmake_args[@]}" \
3028
-DCMAKE_C_COMPILER="${ITLABAI_CC}" \
3129
-DCMAKE_CXX_COMPILER="${ITLABAI_CXX}" \
3230
-DCMAKE_BUILD_TYPE="${build_type}" \

scripts/ci/sycl-x86-setup.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,10 @@ if [[ "${RUNNER_OS}" == "Windows" ]]; then
101101
cc_path="${SYCL_ROOT}/bin/icx.exe"
102102
elif [[ -x "${SYCL_ROOT}/bin/icx-cl.exe" ]]; then
103103
cc_path="${SYCL_ROOT}/bin/icx-cl.exe"
104-
elif [[ -x "${SYCL_ROOT}/bin/clang.exe" ]]; then
105-
cc_path="${SYCL_ROOT}/bin/clang.exe"
106104
elif [[ -x "${SYCL_ROOT}/bin/clang-cl.exe" ]]; then
107105
cc_path="${SYCL_ROOT}/bin/clang-cl.exe"
106+
elif [[ -x "${SYCL_ROOT}/bin/clang.exe" ]]; then
107+
cc_path="${SYCL_ROOT}/bin/clang.exe"
108108
else
109109
echo "Unable to locate a C compiler in ${SYCL_ROOT}/bin" >&2
110110
exit 1
@@ -114,10 +114,10 @@ if [[ "${RUNNER_OS}" == "Windows" ]]; then
114114
cxx_path="${SYCL_ROOT}/bin/icpx.exe"
115115
elif [[ -x "${SYCL_ROOT}/bin/icx-cl.exe" ]]; then
116116
cxx_path="${SYCL_ROOT}/bin/icx-cl.exe"
117-
elif [[ -x "${SYCL_ROOT}/bin/clang++.exe" ]]; then
118-
cxx_path="${SYCL_ROOT}/bin/clang++.exe"
119117
elif [[ -x "${SYCL_ROOT}/bin/clang-cl.exe" ]]; then
120118
cxx_path="${SYCL_ROOT}/bin/clang-cl.exe"
119+
elif [[ -x "${SYCL_ROOT}/bin/clang++.exe" ]]; then
120+
cxx_path="${SYCL_ROOT}/bin/clang++.exe"
121121
else
122122
echo "Unable to locate a C++ compiler in ${SYCL_ROOT}/bin" >&2
123123
exit 1

src/Weights_Reader/reader_weights.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ json read_json(const std::string& filename) {
5050
throw std::runtime_error("Cannot open file: " + filename);
5151
}
5252

53-
struct stat sb {};
53+
struct stat sb{};
5454
fstat(fd, &sb);
5555

5656
if (sb.st_size == 0) {

test/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ int main(int argc, char** argv) {
99
::testing::InitGoogleTest(&argc, argv);
1010

1111
const std::string flaky_disabled = test_utils::get_env("DISABLE_FLAKY_TESTS");
12-
bool flaky_enabled =
13-
flaky_disabled.empty() || (flaky_disabled != "1" && flaky_disabled != "true");
12+
bool flaky_enabled = flaky_disabled.empty() ||
13+
(flaky_disabled != "1" && flaky_disabled != "true");
1414

1515
if (flaky_enabled) {
1616
const std::string retries = test_utils::get_env("FLAKY_RETRIES");

0 commit comments

Comments
 (0)