-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #941 from ndellingwood/rc-3.4.0
Release 3.4.0
- Loading branch information
Showing
120 changed files
with
4,479 additions
and
2,255 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
pipeline { | ||
agent none | ||
|
||
stages { | ||
stage('HIP-ROCm-3.10-C++14') { | ||
agent { | ||
dockerfile { | ||
filename 'Dockerfile.hip' | ||
dir 'scripts/docker' | ||
additionalBuildArgs '--build-arg BASE=rocm/dev-ubuntu-20.04:3.10' | ||
label 'rocm-docker && vega' | ||
args '-v /tmp/ccache.kokkos:/tmp/ccache --device=/dev/kfd --device=/dev/dri --security-opt seccomp=unconfined --group-add video --env HIP_VISIBLE_DEVICES=$HIP_VISIBLE_DEVICES' | ||
} | ||
} | ||
steps { | ||
sh '''rm -rf kokkos && | ||
git clone -b develop https://github.com/kokkos/kokkos.git && cd kokkos && \ | ||
mkdir build && cd build && \ | ||
cmake \ | ||
-DCMAKE_CXX_COMPILER=hipcc \ | ||
-DKokkos_ENABLE_HIP=ON \ | ||
-DKokkos_ARCH_VEGA906=ON \ | ||
.. && \ | ||
make -j8 && make install && \ | ||
cd ../.. && rm -rf kokkos''' | ||
sh '''rm -rf build && mkdir -p build && cd build && \ | ||
cmake \ | ||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \ | ||
-DCMAKE_CXX_COMPILER=hipcc \ | ||
-DKokkosKernels_ENABLE_TESTS=ON \ | ||
-DKokkosKernels_ENABLE_EXAMPLES=ON \ | ||
-DKokkos_ENABLE_HIP=ON \ | ||
-DKokkosKernels_INST_DOUBLE=ON \ | ||
-DKokkosKernels_INST_ORDINAL_INT=ON \ | ||
-DKokkosKernels_INST_OFFSET_INT=ON \ | ||
.. && \ | ||
make -j8 && ctest --verbose''' | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
TRIBITS_PACKAGE_DEFINE_DEPENDENCIES( | ||
LIB_REQUIRED_PACKAGES KokkosCore KokkosContainers KokkosAlgorithms | ||
LIB_OPTIONAL_TPLS quadmath MKL BLAS LAPACK CUSPARSE MAGMA SUPERLU CHOLMOD LAPACKE CBLAS | ||
LIB_OPTIONAL_TPLS quadmath MKL BLAS LAPACK CUSPARSE MAGMA SUPERLU CHOLMOD LAPACKE CBLAS ARMPL | ||
TEST_OPTIONAL_TPLS yaml-cpp | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Both the armpl_mp and armpl libraries define the same public symbol names. | ||
# In order to link against the openmp armpl symbols, instruct cmake to link against armpl_mp. | ||
# In order to link against the default armpl symbols, instruct cmake to link against armpl. | ||
IF(KOKKOSKERNELS_INST_EXECSPACE_OPENMP) | ||
SET(ARMPL_LIB armpl_mp) | ||
ELSE() | ||
SET(ARMPL_LIB armpl) | ||
ENDIF() | ||
|
||
IF (ARMPL_LIBRARY_DIRS AND ARMPL_LIBRARIES) | ||
KOKKOSKERNELS_FIND_IMPORTED(ARMPL INTERFACE LIBRARIES ${ARMPL_LIBRARIES} LIBRARY_PATHS ${ARMPL_LIBRARY_DIRS}) | ||
ELSEIF (ARMPL_LIBRARIES) | ||
KOKKOSKERNELS_FIND_IMPORTED(ARMPL INTERFACE LIBRARIES ${ARMPL_LIBRARIES}) | ||
ELSEIF (ARMPL_LIBRARY_DIRS) | ||
KOKKOSKERNELS_FIND_IMPORTED(ARMPL INTERFACE LIBRARIES amath ${ARMPL_LIB} LIBRARY_PATHS ${ARMPL_LIBRARY_DIRS}) | ||
ELSEIF (DEFINED ENV{ARMPL_DIR}) | ||
SET(ARMPL_ROOT $ENV{ARMPL_DIR}) | ||
KOKKOSKERNELS_FIND_IMPORTED(ARMPL INTERFACE | ||
LIBRARIES | ||
amath | ||
${ARMPL_LIB} | ||
LIBRARY_PATHS | ||
${ARMPL_ROOT}/lib | ||
HEADERS | ||
armpl.h | ||
HEADER_PATHS | ||
${ARMPL_ROOT}/include | ||
) | ||
ELSE() | ||
FIND_PACKAGE(ARMPL REQUIRED) | ||
KOKKOSKERNELS_CREATE_IMPORTED_TPL(ARMPL INTERFACE LINK_LIBRARIES ${ARMPL_LIBRARIES}) | ||
ENDIF() | ||
|
||
TRY_COMPILE(KOKKOSKERNELS_TRY_COMPILE_ARMPL | ||
${KOKKOSKERNELS_TOP_BUILD_DIR}/tpl_tests | ||
${KOKKOSKERNELS_TOP_SOURCE_DIR}/cmake/compile_tests/armpl.cpp | ||
LINK_LIBRARIES -l${ARMPL_LIB} -lgfortran -lamath -lm | ||
OUTPUT_VARIABLE KOKKOSKERNELS_TRY_COMPILE_ARMPL_OUT) | ||
IF(NOT KOKKOSKERNELS_TRY_COMPILE_ARMPL) | ||
MESSAGE(FATAL_ERROR "KOKKOSKERNELS_TRY_COMPILE_ARMPL_OUT=${KOKKOSKERNELS_TRY_COMPILE_ARMPL_OUT}") | ||
ELSE() | ||
# KokkosKernels::ARMPL is an alias to the ARMPL target. | ||
# Let's add in the libgfortran and libm dependencies for users here. | ||
GET_TARGET_PROPERTY(ARMPL_INTERFACE_LINK_LIBRARIES KokkosKernels::ARMPL INTERFACE_LINK_LIBRARIES) | ||
SET(ARMPL_INTERFACE_LINK_LIBRARIES "${ARMPL_INTERFACE_LINK_LIBRARIES};-lgfortran;-lm") | ||
SET_TARGET_PROPERTIES(ARMPL PROPERTIES INTERFACE_LINK_LIBRARIES "${ARMPL_INTERFACE_LINK_LIBRARIES}") | ||
ENDIF() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#include <armpl.h> | ||
|
||
int main(void) { | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.