diff --git a/.github/workflows/ci_test.yaml b/.github/workflows/ci_test.yaml index 0d0fb695eac7403a462a26fce9ec324f727abcd0..008a78cefde59e9514900abe7ab1b91e8866b6bd 100644 --- a/.github/workflows/ci_test.yaml +++ b/.github/workflows/ci_test.yaml @@ -5,8 +5,9 @@ on: jobs: ci_test: strategy: + fail-fast: false matrix: - os: [ubuntu-latest] + os: [ubuntu-latest, macos-latest] runs-on: ${{matrix.os}} steps: - name: CPU Info Mac @@ -49,14 +50,26 @@ jobs: shell: bash working-directory: ${{runner.workspace}}/graph_framework/build run: cmake ${{runner.workspace}}/graph_framework - - name: Build + - name: Build Mac + if: ${{matrix.os == 'macos-latest'}} shell: bash working-directory: ${{runner.workspace}}/graph_framework/build run: make -j3 VERBOSE=1 - - name: Test + - name: Build Linux + if: ${{matrix.os == 'ubuntu-latest'}} + shell: bash + working-directory: ${{runner.workspace}}/graph_framework/build + run: make -j2 VERBOSE=1 + - name: Test Mac + if: ${{matrix.os == 'macos-latest'}} shell: bash working-directory: ${{runner.workspace}}/graph_framework/build run: make test ARGS=-j3 + - name: Test Linux + if: ${{matrix.os == 'ubuntu-latest'}} + shell: bash + working-directory: ${{runner.workspace}}/graph_framework/build + run: make test ARGS=-j2 - name: Show Log if: failure() shell: bash diff --git a/README.md b/README.md index fb7d55674893c690bcb4b4f0fec61d23b2dbdffa..055dcd90cf8ede27ed312513a46fa735bc5571bc 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,8 @@ differentiation. It is designed to allow domain scientists to create cross platform GPU accelerated code and embed those codes in existing legacy tools. +[![Continuous Integration Test](https://github.com/ORNL-Fusion/graph_framework/actions/workflows/ci_test.yaml/badge.svg?branch=main)](https://github.com/ORNL-Fusion/graph_framework/actions/workflows/ci_test.yaml) + ## Documentation [graph_framework-docs](https://ornl-fusion.github.io/graph_framework-docs) Documentation for the graph_framework. diff --git a/graph_framework/cpu_context.hpp b/graph_framework/cpu_context.hpp index fc210b46aafa40f032f0edff0c6a97064e1d23e3..76fb3130d2a4a8759ed04d07bce8ca19e2f322e5 100644 --- a/graph_framework/cpu_context.hpp +++ b/graph_framework/cpu_context.hpp @@ -398,8 +398,9 @@ namespace gpu { /// @param[in,out] source_buffer Source buffer stream. //------------------------------------------------------------------------------ void create_header(std::ostringstream &source_buffer) { - source_buffer << "#include " << std::endl - << "#include " << std::endl; + source_buffer << "#include " << std::endl + << "#include " << std::endl + << "#include " << std::endl; if (jit::complex_scalar) { source_buffer << "#include " << std::endl; source_buffer << "#include " << std::endl;