Skip to content

Commit

Permalink
Merge pull request #602 from mmuetzel/ci
Browse files Browse the repository at this point in the history
GraphBLAS: Generate GB_JITpackage.c only if included files have changed.
  • Loading branch information
DrTimothyAldenDavis authored Dec 19, 2023
2 parents 41de927 + 15a64e5 commit 8017451
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/macos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- '**/*dev2'
pull_request:

concurrency: ci-${{ github.ref }}
concurrency: ci-macos-${{ github.ref }}

env:
# string with name of libraries to be built
Expand Down Expand Up @@ -35,7 +35,7 @@ jobs:
# re-installed.
run: |
brew update
brew install --overwrite [email protected] [email protected]
brew install --overwrite [email protected] [email protected] [email protected]
brew reinstall gcc
brew install autoconf automake ccache cmake gmp lapack libomp mpfr openblas
Expand Down Expand Up @@ -164,8 +164,8 @@ jobs:
- name: check_LAGraph
run: |
cd ${GITHUB_WORKSPACE}/LAGraph/build
ctest .
cd ${GITHUB_WORKSPACE}/LAGraph
make demos
- name: check_ParU
run: |
Expand Down
4 changes: 2 additions & 2 deletions GraphBLAS/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ if ( BUILD_SHARED_LIBS )

if ( NOT NJIT )
# Make sure compressed sources are built before library
add_dependencies ( GraphBLAS grb_jitpackage_source )
add_dependencies ( GraphBLAS GB_JITpackage )
endif ( )
endif ( )

Expand Down Expand Up @@ -320,7 +320,7 @@ if ( BUILD_STATIC_LIBS )

if ( NOT NJIT )
# Make sure compressed sources are built before library
add_dependencies ( GraphBLAS_static grb_jitpackage_source )
add_dependencies ( GraphBLAS_static GB_JITpackage )
endif ( )

endif ( )
Expand Down
13 changes: 8 additions & 5 deletions GraphBLAS/JITpackage/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@

cmake_minimum_required ( VERSION 3.20 ) # GraphBLAS can be built stand-alone
project ( jitpackage LANGUAGES C )
include_directories ( ../zstd ../zstd/zstd_subset )
add_executable ( grb_jitpackage "Source/grb_jitpackage.c" )
add_executable ( grb_jitpackage "Source/grb_jitpackage.c" )
target_include_directories ( grb_jitpackage PRIVATE ../zstd/zstd_subset )
if ( NOT WIN32 )
target_link_libraries ( grb_jitpackage PUBLIC m )
target_link_libraries ( grb_jitpackage PRIVATE m )
endif ( )

file ( GLOB GRB_SOURCE_FILES
Expand All @@ -24,10 +24,13 @@ file ( GLOB GRB_SOURCE_FILES
"../CUDA/JitKernels/*h"
"../Source/Shared/*.h" )

add_custom_target ( grb_jitpackage_source ALL
COMMAND $<TARGET_FILE:grb_jitpackage> ${GRB_SOURCE_FILES}
add_custom_command ( OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/GB_JITpackage.c
COMMAND $<TARGET_FILE:grb_jitpackage>
ARGS ${GRB_SOURCE_FILES}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
DEPENDS ${GRB_SOURCE_FILES}
COMMENT "Generating compressed sources for JIT compiler..."
)

add_custom_target ( GB_JITpackage
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/GB_JITpackage.c )

0 comments on commit 8017451

Please sign in to comment.