Skip to content

Commit 7b4a625

Browse files
committed
Trim unrelated changes from SYCL PR
1 parent fa80486 commit 7b4a625

13 files changed

Lines changed: 19 additions & 903 deletions

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
name: CI
22

3-
concurrency:
4-
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
5-
cancel-in-progress: true
6-
73
on:
84
push:
95
pull_request:

.github/workflows/static-analysis.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
name: Static analysis
22

3-
concurrency:
4-
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
5-
cancel-in-progress: true
6-
73
on: [pull_request]
84

95
jobs:

.github/workflows/sycl-ci.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,6 @@ jobs:
9090
- name: Build
9191
run: cmake --build build --parallel
9292

93-
- name: Test
94-
run: ctest --test-dir build --output-on-failure -E '^SYCL\.Example$' --parallel
95-
9693
- name: Test
9794
run: |
9895
if [ -n "${DEVICE_SELECTOR}" ]; then

app/Graph/build.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ ParseResult parse_json_model(RuntimeOptions options,
519519
concat_connections[layer_name].push_back(base_input_name);
520520
}
521521
}
522-
auto concat_layer = LayerFactory::createConcatLayer(axis, options);
522+
auto concat_layer = std::make_shared<it_lab_ai::ConcatLayer>(axis);
523523
layer = concat_layer;
524524
concat_connected_inputs[layer_name] = std::unordered_set<std::string>();
525525
} else if (layer_type == "Split") {

app/Graph/build.hpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
#include "layers/Tensor.hpp"
3434
#include "layers/TransposeLayer.hpp"
3535
#include "layers_oneDNN/BinaryOpLayer.hpp"
36-
#include "layers_oneDNN/ConcatLayer.hpp"
3736
#include "layers_oneDNN/ConvLayer.hpp"
3837
#include "layers_oneDNN/EWLayer.hpp"
3938
#include "layers_oneDNN/PoolingLayer.hpp"
@@ -135,14 +134,6 @@ class LayerFactory {
135134
return std::make_shared<PoolingLayer>(shape, strides, pads, dilations,
136135
ceil_mode, PoolType);
137136
}
138-
139-
static std::shared_ptr<Layer> createConcatLayer(
140-
int64_t axis, const RuntimeOptions& options) {
141-
if (options.backend == Backend::kOneDnn) {
142-
return std::make_shared<ConcatLayerOneDnn>(axis);
143-
}
144-
return std::make_shared<ConcatLayer>(axis);
145-
}
146137
};
147138

148139
} // namespace it_lab_ai

include/layers_oneDNN/ConcatLayer.hpp

Lines changed: 0 additions & 69 deletions
This file was deleted.

src/Weights_Reader/reader_weights.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "Weights_Reader/reader_weights.hpp"
1+
#include "Weights_Reader/reader_weights.hpp"
22

33
#include <fstream>
44
#include <iostream>

src/layers_oneDNN/ConcatLayer.cpp

Lines changed: 0 additions & 222 deletions
This file was deleted.

test/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ endif()
66

77
add_executable(run_test ${TEST_SRC_FILES})
88

9+
if(WIN32)
10+
target_compile_definitions(run_test PRIVATE _CRT_SECURE_NO_WARNINGS)
11+
endif()
12+
913
target_link_libraries(run_test PUBLIC OpenMP::OpenMP_CXX)
1014
target_link_libraries(run_test PUBLIC perf_lib layers_lib layers_oneDNN_lib layers_fused_lib)
1115
target_link_libraries(run_test PUBLIC gtest)

test/main.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
#include <gtest/gtest.h>
22

3+
#include <cstdlib>
34
#include <cstring>
45
#include <iostream>
56

6-
#include "utils/env.hpp"
7-
87
int main(int argc, char** argv) {
98
::testing::InitGoogleTest(&argc, argv);
109

11-
const std::string flaky_disabled = test_utils::get_env("DISABLE_FLAKY_TESTS");
12-
bool flaky_enabled = flaky_disabled.empty() ||
13-
(flaky_disabled != "1" && flaky_disabled != "true");
10+
const char* flaky_disabled = std::getenv("DISABLE_FLAKY_TESTS");
11+
bool flaky_enabled =
12+
(flaky_disabled == nullptr) || (std::strcmp(flaky_disabled, "1") != 0 &&
13+
std::strcmp(flaky_disabled, "true") != 0);
1414

1515
if (flaky_enabled) {
16-
const std::string retries = test_utils::get_env("FLAKY_RETRIES");
17-
int retry_count = retries.empty() ? 10 : std::atoi(retries.c_str());
16+
const char* retries = std::getenv("FLAKY_RETRIES");
17+
int retry_count = retries ? std::atoi(retries) : 10;
1818
std::cout << "Flaky test support enabled. Max retries: " << retry_count
1919
<< '\n';
2020
std::cout << "Use FLAKY_TEST/FLAKY_TEST_F macros to create flaky tests."

0 commit comments

Comments
 (0)