-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8c3fcb8
commit ceadde1
Showing
35 changed files
with
863 additions
and
64 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
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,36 @@ | ||
# - Find the MAGMA library | ||
# | ||
# Usage: | ||
# find_package(MAGMA [REQUIRED] [QUIET] ) | ||
# | ||
# It sets the following variables: | ||
# MAGMA_FOUND ... true if magma is found on the system | ||
# MAGMA_LIBRARY_DIRS ... full path to magma library | ||
# MAGMA_INCLUDE_DIRS ... magma include directory | ||
# MAGMA_LIBRARIES ... magma libraries | ||
# | ||
# The following variables will be checked by the function | ||
# MAGMA_USE_STATIC_LIBS ... if true, only static libraries are found | ||
# MAGMA_ROOT ... if set, the libraries are exclusively searched | ||
# under this path | ||
|
||
#If environment variable MAGMA_ROOT is specified, it has same effect as MAGMA_ROOT | ||
if( NOT MAGMA_ROOT AND NOT $ENV{MAGMA_ROOT} STREQUAL "" ) | ||
set( MAGMA_ROOT $ENV{MAGMA_ROOT} ) | ||
# set library directories | ||
set(MAGMA_LIBRARY_DIRS ${MAGMA_ROOT}/lib) | ||
# set include directories | ||
set(MAGMA_INCLUDE_DIRS ${MAGMA_ROOT}/include) | ||
# set libraries | ||
find_library( | ||
MAGMA_LIBRARIES | ||
NAMES "magma" | ||
PATHS ${MAGMA_ROOT} | ||
PATH_SUFFIXES "lib" | ||
NO_DEFAULT_PATH | ||
) | ||
set(MAGMA_FOUND TRUE) | ||
else() | ||
set(MAGMA_FOUND FALSE) | ||
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,23 @@ | ||
#!/bin/bash | ||
module load gcc/5.4.0 | ||
module load netlib-lapack/3.6.1 | ||
module load magma/2.2.0 | ||
module load cuda/8.0.54 | ||
module load cmake/3.6.1 | ||
|
||
# Make sure all the paths are correct | ||
|
||
rm -r build | ||
rm -r install | ||
|
||
MY_PATH=$(pwd) | ||
|
||
export BML_OPENMP=${BML_OPENMP:=no} | ||
export INSTALL_DIR=${INSTALL_DIR:="${MY_PATH}/install"} | ||
export BML_MAGMA=${BML_MAGMA:=yes} | ||
export MAGMA_ROOT=$OLCF_MAGMA_ROOT | ||
|
||
./build.sh testing | ||
#./build.sh install | ||
|
||
|
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.