Skip to content

Commit

Permalink
run dr shp-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
haichangsi committed Jun 6, 2024
1 parent e3c6b26 commit e3f28c0
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .github/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# docker build -t oneapi-gcc13 .
# docker run -ti --rm oneapi-gcc13
FROM intel/oneapi:latest
RUN apt update
RUN add-apt-repository ppa:ubuntu-toolchain-r/test
RUN apt install -y g++-13
RUN apt install -y libgtest-dev
RUN apt install -y libcxxopts-dev

RUN apt remove --purge --auto-remove -y cmake
RUN wget https://cmake.org/files/v3.29/cmake-3.29.2.tar.gz
RUN tar -xzvf cmake-3.29.2.tar.gz && cd cmake-3.29.2 && ./bootstrap && make -j12 && make install

RUN apt install -y libfmt-dev

CMD /bin/bash
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
- release_oneDPL
- main
- 'release/**'
- distributed-ranges

permissions: read-all

Expand Down Expand Up @@ -219,6 +220,13 @@ jobs:
-DCMAKE_CXX_COMPILER=${{ matrix.cxx_compiler }} -DONEDPL_BACKEND=${{ matrix.backend }} -DONEDPL_DEVICE_TYPE=${{ matrix.device_type }} ..
make VERBOSE=1 -j${BUILD_CONCURRENCY} ${make_targets}
ctest --timeout ${TEST_TIMEOUT} --output-on-failure ${ctest_flags}
- name: Distributed Ranges testing
run: |
cd ..
docker build . -t dr-test -f .github/Dockerfile
docker run --name dr-test -d -v $(pwd):/repo dr-test sh -c "cd repo & cmake --build build --target run-dr-tests"
docker logs -f dr-test
linux-pstl-offload-testing:
name: PSTL offload ${{ matrix.device_type }},bknd=dpcpp,cmplr=${{ matrix.cxx_compiler }},${{ matrix.os }},std=с++${{ matrix.std }},cfg=${{ matrix.build_type }}
Expand Down
4 changes: 3 additions & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ add_custom_target(build-onedpl-tests
COMMENT "Build all oneDPL tests")

if (ONEDPL_USE_DR)
set(run-onedpl-tests-depends build-onedpl-tests shp-tests shp-tests-3)
# shp-tests and shp-tests-3 are built in docker - removed from here for now
set(run-onedpl-tests-depends build-onedpl-tests)
else()
set(run-onedpl-tests-depends build-onedpl-tests)
endif()
Expand Down Expand Up @@ -255,6 +256,7 @@ endforeach()

if (ONEDPL_USE_DR)
add_custom_target(build-dr-tests COMMENT "Build dr tests" DEPENDS shp-tests shp-tests-3)
# run in docker
add_custom_target(run-dr-tests COMMENT "Run dr tests" DEPENDS build-dr-tests COMMAND ./distributed-ranges/shp/shp-tests ./distributed-ranges/shp/shp-tests-3)
endif()

Expand Down

0 comments on commit e3f28c0

Please sign in to comment.