Skip to content

Commit

Permalink
works on Perlmutter
Browse files Browse the repository at this point in the history
  • Loading branch information
nanding0701 committed Jan 25, 2023
1 parent d438914 commit f88a29e
Show file tree
Hide file tree
Showing 4,483 changed files with 979,109 additions and 1,718 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/superlu_dist.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

85 changes: 85 additions & 0 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 10 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ option(TPL_COMBBLAS_INCLUDE_DIRS "List of absolute paths to CombBLAS include dir
#-- CUDA
option(TPL_ENABLE_CUDALIB "Enable the CUDA libraries" OFF)
option(TPL_ENABLE_HIPLIB "Enable the HIP libraries" OFF)

#-- NVSHMEM
option(TPL_ENABLE_NVSHMEM "Enable the NVSHMEM libraries" OFF)
option(TPL_ENABLE_ROCSHMEM "Enable the ROCSHMEM libraries" OFF)
######################################################################
#
# IDEAS: xSDK standards module
Expand Down Expand Up @@ -188,6 +190,7 @@ if (TPL_ENABLE_CUDALIB) ## want to use cuda
enable_language(CUDA)
find_package(CUDA REQUIRED)
if (CUDA_FOUND)
set(CUDA_SEPARABLE_COMPILATION ON)
if(NOT CMAKE_CUDA_ARCHITECTURES)
# if(${CMAKE_VERSION} VERSION_LESS_EQUAL "3.13.4")
# cuda_select_nvcc_arch_flags(ARCH_FLAGS "Auto") # optional argument for arch to add
Expand All @@ -205,7 +208,7 @@ if (TPL_ENABLE_CUDALIB) ## want to use cuda
# endif()
endif()
set(HAVE_CUDA TRUE)
set(CMAKE_CUDA_FLAGS_RELEASE "-O3 --expt-relaxed-constexpr -DNDEBUG" CACHE STRING "")
set(CMAKE_CUDA_FLAGS_RELEASE "-O3 --expt-relaxed-constexpr -DNDEBUG -rdc=true" CACHE STRING "")
set(CMAKE_CUDA_FLAGS_DDEBUG "-O0 --expt-relaxed-constexpr -DDEBUG -g" CACHE STRING "")
endif()

Expand Down Expand Up @@ -281,6 +284,11 @@ if (TPL_ENABLE_CUDALIB) ## want to use cuda
endif()


#--------------------- NVSHMEM libraries ---------------------
if (TPL_ENABLE_NVSHMEM) ## want to use nvshmem
set(NVSHMEM_LIB ${TPL_NVSHMEM_LIBRARIES})
message("-- Enabled support for NVSHMEM='${NVSHMEM_LIB}'")
endif()

#--------------------- HIP libraries ---------------------
if (TPL_ENABLE_HIPLIB) ## want to use hip
Expand Down
5 changes: 2 additions & 3 deletions EXAMPLE/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
include_directories(${SuperLU_DIST_SOURCE_DIR}/SRC)

# Libs linked to all of the examples
#set(all_link_libs superlu_dist ${BLAS_LIB})
set(NVSHMEM_LIB "-L/ccs/home/nanding/mysoftware/nvshmem203_gdr_cuda1103/lib -lnvshmem")
set(all_link_libs superlu_dist ${BLAS_LIB} ${NVSHMEM_LIB})
#set(all_link_libs superlu_dist ${BLAS_LIB} ${NVSHMEM_LIB})
set(all_link_libs superlu_dist ${BLAS_LIB})
if (NOT MSVC)
list(APPEND all_link_libs m)
endif ()
Expand Down
8 changes: 5 additions & 3 deletions EXAMPLE/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,13 @@
include ../make.inc

SEXM = psdrive.o screate_matrix.o dcreate_matrix.o screate_A_x_b.o \
psgssvx_tracking.o psgsrfs_tracking.o
psgssvx_tracking.o psgsrfs_tracking.o \
psutil.o sdistribute.o
# psgssvx_d2.o psgsrfs_d2.o sutil_dist.o psgsequb.o

DEXM = pddrive.o dcreate_matrix.o
# pdgstrs.o pdgsrfs.o pdgstrs_lsum.o
DEXM = pddrive.o dcreate_matrix.o
# psymbfact.o pdgssvx.o pdsymbfact_distdata.o memory.o

DEXMRHS = pddrive_rhs.o dcreate_matrix_rhs.o #sp_ienv.o
# pdgstrs.o pdgsrfs.o pdgstrs_lsum.o

Expand Down
Loading

0 comments on commit f88a29e

Please sign in to comment.