Skip to content

Commit 303813b

Browse files
author
Denis Jelovina
committed
temp disable dense backend
1 parent 6d949d1 commit 303813b

File tree

3 files changed

+15
-139
lines changed

3 files changed

+15
-139
lines changed

.gitlab-ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ workflow:
115115
# before_script:
116116
# - yum -y update && yum -y groupinstall "Development Tools" && yum -y install make autoconf cmake numactl-devel
117117
# script:
118-
# - rm -rf build install && mkdir -p install build && cd ./build && ../bootstrap.sh --prefix=../install && make -j$(nproc) && make -j$(nproc) build_tests_all
118+
# - rm -rf build install && mkdir -p install build && cd ./build && ../bootstrap.sh --prefix=../install --no-dense && make -j$(nproc) && make -j$(nproc) build_tests_all
119119
# - *strip_symbols
120120
# artifacts:
121121
# paths:
@@ -131,7 +131,7 @@ workflow:
131131
# before_script:
132132
# - yum -y update && yum -y groupinstall "Development Tools" && yum -y install make autoconf cmake numactl-devel
133133
# script:
134-
# - mkdir -p install build && cd ./build && ../bootstrap.sh --prefix=../install --debug-build && make -j$(nproc) && make -j$(nproc) build_tests_all
134+
# - mkdir -p install build && cd ./build && ../bootstrap.sh --prefix=../install --debug-build --no-dense && make -j$(nproc) && make -j$(nproc) build_tests_all
135135
# rules:
136136
# - if: $EXTRA_TESTS_ENABLED == "yes"
137137

@@ -187,7 +187,7 @@ workflow:
187187

188188
build_test:
189189
script:
190-
- mkdir -p install build && cd ./build && ../bootstrap.sh --prefix=../install --with-datasets=${ALP_DATASETS}
190+
- mkdir -p install build && cd ./build && ../bootstrap.sh --prefix=../install --with-datasets=${ALP_DATASETS} --no-dense
191191
&& make -j$(nproc) build_tests_all
192192
- *strip_symbols
193193
artifacts:
@@ -238,7 +238,7 @@ test_installation:
238238

239239
build_test_buildtype_debug:
240240
script:
241-
- mkdir -p install build && cd ./build && ../bootstrap.sh --prefix=../install --with-datasets=${ALP_DATASETS}
241+
- mkdir -p install build && cd ./build && ../bootstrap.sh --prefix=../install --with-datasets=${ALP_DATASETS} --no-dense
242242
--debug-build && make -j$(nproc) && make -j$(nproc) build_tests_all
243243
- *strip_symbols
244244
artifacts:
@@ -272,7 +272,7 @@ gitleaks:
272272
# factored out command to download the datasets, cmake, and build in non-debug mode
273273
.setup_and_build_ndebug_slurm: &setup_and_build_ndebug_slurm
274274
- mkdir -p install build && cd ./build
275-
- ../bootstrap.sh --prefix=../install --with-datasets=${SLURM_DATASETS_DIR_PATH} --no-hyperdags
275+
- ../bootstrap.sh --prefix=../install --with-datasets=${SLURM_DATASETS_DIR_PATH} --no-hyperdags --no-dense
276276
- make -j$(nproc)
277277

278278
tests_performance_slurm:
@@ -318,7 +318,7 @@ build_test_lpf:
318318
- if: $LPF_TESTS_ENABLED == "yes"
319319
script:
320320
# build only LPF-related tests
321-
- mkdir -p install build && cd ./build && ../bootstrap.sh --with-lpf=${LPF_PATH} --no-nonblocking --no-reference
321+
- mkdir -p install build && cd ./build && ../bootstrap.sh --with-lpf=${LPF_PATH} --no-nonblocking --no-reference --no-dense
322322
--no-hyperdags --prefix=../install --with-datasets=${ALP_DATASETS} && make -j$(nproc) build_tests_all
323323
- *strip_symbols
324324
artifacts:
@@ -389,7 +389,7 @@ build_test_gcc_versions:
389389
# VER: [11,12,13,14]
390390
script:
391391
- mkdir -p install build && cd ./build &&
392-
CXX=${CXX_COMPILER}-${VER} CC=${CC_COMPILER}-${VER} ../bootstrap.sh
392+
CXX=${CXX_COMPILER}-${VER} CC=${CC_COMPILER}-${VER} ../bootstrap.sh --no-dense
393393
--prefix=../install --with-datasets=${ALP_DATASETS}
394394
--with-lpf=${LPF_BASE_PATH}/build_mpich_${CC_COMPILER}_${VER}/install &&
395395
make -j$(nproc) build_tests_all

bootstrap.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ hyperdags_using=reference
105105
nonblocking=yes
106106
banshee=no
107107
lpf=no
108-
alp_reference=yes
109-
alp_dispatch=yes
110-
alp_omp=yes
108+
alp_reference=no
109+
alp_dispatch=no
110+
alp_omp=no
111111
show=no
112112
FLAGS=$''
113113
LPF_INSTALL_PATH=
@@ -170,6 +170,11 @@ or assume default paths (--with-lpf)"
170170
--no-alp-reference)
171171
alp_reference=no
172172
;;
173+
--no-dense)
174+
alp_reference=no
175+
alp_dispatch=no
176+
alp_omp=no
177+
;;
173178
--no-reference)
174179
reference=no
175180
;;

src/graphblas/reference/CMakeLists.txt

Lines changed: 0 additions & 129 deletions
Original file line numberDiff line numberDiff line change
@@ -36,133 +36,4 @@ set( backend_reference_srcs ${backend_reference_srcs}
3636
${CMAKE_CURRENT_SOURCE_DIR}/io.cpp
3737
PARENT_SCOPE
3838
)
39-
### BINARY-ONLY TARGETS: create the actual library with all code inside
40-
### but storing only the minimum interface definitions (e.g. no OMP);
41-
### no default backend is set!
42-
43-
if( ${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.19.0" )
44-
45-
# alias target for basic propagation of headers and definitions
46-
# from existing header target, which depends on the enabled backends;
47-
# use the most advanced ones, i.e. those of reference_omp if available
48-
if( WITH_OMP_BACKEND_HEADERS )
49-
set( backend_shmem_base_headers backend_reference_omp_headers)
50-
elseif( WITH_REFERENCE_BACKEND_HEADERS )
51-
set( backend_shmem_base_headers backend_reference_headers )
52-
endif()
53-
54-
## STATIC
55-
make_reference_target( backend_shmem_static STATIC "shmem" )
56-
target_link_libraries( backend_shmem_static PRIVATE ${backend_shmem_base_headers} )
57-
# this is the actual binary file, i.e. the one to be installed
58-
install( TARGETS backend_shmem_static
59-
EXPORT GraphBLASTargets
60-
ARCHIVE DESTINATION "${SHMEM_BACKEND_INSTALL_DIR}"
61-
)
62-
63-
## DYNAMIC
64-
make_reference_target( backend_shmem_shared SHARED "shmem" )
65-
target_link_libraries( backend_shmem_shared PRIVATE ${backend_shmem_base_headers} )
66-
67-
install( TARGETS backend_shmem_shared
68-
EXPORT GraphBLASTargets
69-
LIBRARY DESTINATION "${SHMEM_BACKEND_INSTALL_DIR}"
70-
)
71-
72-
add_dependencies( libs backend_shmem_static )
73-
add_dependencies( libs backend_shmem_shared )
74-
endif()
75-
76-
77-
### CONSUMABLE TARGETS
78-
### i.e. targets with the default backend already set in the compilation interface:
79-
### if you import one of them, than it is already selected as a backend
80-
81-
if( WITH_REFERENCE_BACKEND )
82-
83-
## reference static
84-
if( ${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.19.0" )
85-
# with CMake 3.19 or higher interface targets can inherit output properties like filename;
86-
# hence, just do that and link the relevant libraries as interface dependencies
87-
add_library( backend_reference_static INTERFACE )
88-
target_link_libraries( backend_reference_static INTERFACE backend_shmem_static )
89-
target_link_libraries( backend_reference_static INTERFACE backend_reference_headers )
90-
else()
91-
# otherwise, we must create a dedicated binary
92-
make_reference_target( backend_reference_static STATIC "reference" )
93-
target_link_libraries( backend_reference_static PUBLIC backend_reference_headers )
94-
add_dependencies( libs backend_reference_static )
95-
endif()
96-
# add the suitable definitions for backend selection for users' targets to get them automatically
97-
target_compile_definitions( backend_reference_static INTERFACE "${REFERENCE_SELECTION_DEFS}" )
98-
99-
install( TARGETS backend_reference_static
100-
EXPORT GraphBLASTargets
101-
ARCHIVE DESTINATION "${SHMEM_BACKEND_INSTALL_DIR}"
102-
)
103-
104-
## reference shared
105-
if( ${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.19.0" )
106-
add_library( backend_reference_shared INTERFACE )
107-
target_link_libraries( backend_reference_shared INTERFACE backend_shmem_shared )
108-
target_link_libraries( backend_reference_shared INTERFACE backend_reference_headers )
109-
else()
110-
make_reference_target( backend_reference_shared SHARED "reference" )
111-
target_link_libraries( backend_reference_shared PUBLIC backend_reference_headers )
112-
add_dependencies( libs backend_reference_shared )
113-
endif()
114-
target_compile_definitions( backend_reference_shared INTERFACE "${REFERENCE_SELECTION_DEFS}" )
115-
116-
install( TARGETS backend_reference_shared
117-
EXPORT GraphBLASTargets
118-
LIBRARY DESTINATION "${SHMEM_BACKEND_INSTALL_DIR}"
119-
)
120-
121-
# this is an alias for add_grb_executables() to select the backend to link against
122-
# DO NOT CHANGE THE ALIAS NAME!
123-
add_library( "${REFERENCE_BACKEND_DEFAULT_NAME}" ALIAS backend_reference_static )
124-
125-
endif( WITH_REFERENCE_BACKEND )
126-
127-
if( WITH_OMP_BACKEND )
128-
129-
## reference_omp static
130-
if( ${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.19.0" )
131-
add_library( backend_reference_omp_static INTERFACE )
132-
target_link_libraries( backend_reference_omp_static INTERFACE backend_shmem_static )
133-
target_link_libraries( backend_reference_omp_static INTERFACE backend_reference_omp_headers )
134-
else()
135-
make_reference_target( backend_reference_omp_static STATIC "reference_omp" )
136-
target_link_libraries( backend_reference_omp_static PUBLIC backend_reference_omp_headers )
137-
add_dependencies( libs backend_reference_omp_static )
138-
endif()
139-
target_compile_definitions( backend_reference_omp_static INTERFACE "${REFERENCE_OMP_SELECTION_DEFS}" )
140-
141-
install( TARGETS backend_reference_omp_static
142-
EXPORT GraphBLASTargets
143-
ARCHIVE DESTINATION "${SHMEM_BACKEND_INSTALL_DIR}"
144-
)
145-
146-
## reference_omp shared
147-
if( ${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.19.0" )
148-
add_library( backend_reference_omp_shared INTERFACE )
149-
target_link_libraries( backend_reference_omp_shared INTERFACE backend_shmem_shared )
150-
target_link_libraries( backend_reference_omp_shared INTERFACE backend_reference_omp_headers )
151-
else()
152-
make_reference_target( backend_reference_omp_shared SHARED "reference_omp" )
153-
target_link_libraries( backend_reference_omp_shared PUBLIC backend_reference_omp_headers )
154-
add_dependencies( libs backend_reference_omp_shared )
155-
endif()
156-
target_compile_definitions( backend_reference_omp_shared INTERFACE "${REFERENCE_OMP_SELECTION_DEFS}" )
157-
158-
install( TARGETS backend_reference_omp_shared
159-
EXPORT GraphBLASTargets
160-
LIBRARY DESTINATION "${SHMEM_BACKEND_INSTALL_DIR}"
161-
)
162-
163-
# this is an alias for add_grb_executables() to select the backend to link against
164-
# DO NOT CHANGE THE ALIAS NAME!
165-
add_library( "${REFERENCE_OMP_BACKEND_DEFAULT_NAME}" ALIAS backend_reference_omp_static )
166-
167-
endif( WITH_OMP_BACKEND )
16839

0 commit comments

Comments
 (0)