Skip to content

Commit

Permalink
Merge branch 'kokkos_version' of https://github.com/Amazingkivas/FDTD…
Browse files Browse the repository at this point in the history
…_Method into kokkos_version
  • Loading branch information
Amazingkivas committed Nov 3, 2024
2 parents 7c736dd + 09cde02 commit c2117cf
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 22 deletions.
48 changes: 26 additions & 22 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,26 @@ name: Build application
on: [push, pull_request]

jobs:
windows-msvc-build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
with:
submodules: 'recursive'
- name: Build FDTD
shell: bash
run: |
export CMAKE_BUILD_PARALLEL_LEVEL=4
mkdir build
cmake \
-A x64 \
-B ${PWD}/build
cmake --build ${PWD}/build --config Release
find ${PWD}/build -name test_FDTD_method
- name: Run tests
shell: bash
run: |
${PWD}/build/sln/test_FDTD_method/Release/test_FDTD_method.exe --gtest_repeat=2 --gtest_break_on_failure
linux-gcc-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
submodules: 'recursive'

- name: Build Kokkos with OpenMP
shell: bash
run: |
cd 3rdparty/kokkos
mkdir build
cd build
cmake .. \
-DCMAKE_CXX_COMPILER=g++ \
-DCMAKE_C_COMPILER=gcc \
-DKokkos_ENABLE_OPENMP=ON
make -j4
cd ../../..
- name: Build FDTD with GCC
shell: bash
run: |
Expand All @@ -44,4 +37,15 @@ jobs:
- name: Run tests with GCC
shell: bash
run: |
${PWD}/build/sln/test_FDTD_method/test_FDTD_method --gtest_repeat=2 --gtest_break_on_failure
${PWD}/build/test/test_FDTD_method --gtest_repeat=2 --gtest_break_on_failure
- name: Run kokkos_sample
shell: bash
run: |
find ${PWD}/build -name kokkos_sample
${PWD}/build/PlotScript/src/Release/kokkos_sample
- name: Run sample
shell: bash
run: |
${PWD}/build/PlotScript/src/Release/sample
File renamed without changes.

0 comments on commit c2117cf

Please sign in to comment.