Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
  • Loading branch information
henryleberre committed Sep 11, 2024
1 parent 90f0c56 commit cbf9e56
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 58 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/frontier/build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash

. ./mfc.sh load -c f -m g
./mfc.sh build -j 8 --gpu --sys-hdf5
./mfc.sh build -j 8 --gpu
2 changes: 1 addition & 1 deletion .github/workflows/frontier/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
gpus=`rocm-smi --showid | awk '{print $1}' | grep -Eo '[0-9]+' | uniq | tr '\n' ' '`
ngpus=`echo "$gpus" | tr -d '[:space:]' | wc -c`

./mfc.sh test --max-attempts 3 -j $ngpus --sys-hdf5 -- -c frontier
./mfc.sh test --max-attempts 3 -j $ngpus -- -c frontier

5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,10 @@ find_program(FYPP_EXE fypp REQUIRED)

link_libraries("${CMAKE_DL_LIBS}")
set_property(GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS ON)
list(PREPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/toolchain/cmake")
list(PREPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/toolchain/cmake/regular")
if (CMAKE_Fortran_COMPILER_ID STREQUAL "Cray")
list(PREPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/toolchain/cmake/cce")
endif()


# Compiler Flags: Here, we specify our own compiler flags for both release and
Expand Down
37 changes: 0 additions & 37 deletions toolchain/cmake/FindcuTENSOR.cmake

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
39 changes: 24 additions & 15 deletions toolchain/dependencies/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ cmake_minimum_required(VERSION 3.12)

project(MFC-Dependencies LANGUAGES C CXX Fortran)

list(PREPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../cmake")
list(PREPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../cmake/regular")
if (CMAKE_Fortran_COMPILER_ID STREQUAL "Cray")
list(PREPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../cmake/cce")
endif()

set_property(GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS ON)

Expand Down Expand Up @@ -45,19 +48,25 @@ endif()

# HDF5
if (MFC_HDF5)
ExternalProject_Add(hdf5
GIT_REPOSITORY "https://github.com/HDFGroup/hdf5"
GIT_TAG hdf5-1_12_2
GIT_SHALLOW ON
GIT_PROGRESS ON
CMAKE_ARGS "-DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}"
-DBUILD_SHARED_LIBS=OFF
-DFORTRAN_LIBRARIES=ON
-DBUILD_TESTING=OFF
-DHDF5_BUILD_UTILS=OFF
-DHDF5_BUILD_TOOLS=ON
-DHDF5_BUILD_EXAMPLES=OFF
)
find_package(HDF5)
if (HDF5_FOUND)
message(STATUS "HDF5 found.")
add_custom_target(hdf5)
else()
ExternalProject_Add(hdf5
GIT_REPOSITORY "https://github.com/HDFGroup/hdf5"
GIT_TAG hdf5-1_12_2
GIT_SHALLOW ON
GIT_PROGRESS ON
CMAKE_ARGS "-DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}"
-DBUILD_SHARED_LIBS=OFF
-DFORTRAN_LIBRARIES=ON
-DBUILD_TESTING=OFF
-DHDF5_BUILD_UTILS=OFF
-DHDF5_BUILD_TOOLS=ON
-DHDF5_BUILD_EXAMPLES=OFF
)
endif()
endif()


Expand All @@ -84,7 +93,7 @@ if (MFC_SILO)
"-DCMAKE_FIND_ROOT_PATH=${CMAKE_FIND_ROOT_PATH}"
"-DCMAKE_FIND_PACKAGE_REDIRECTS_DIR=${CMAKE_FIND_PACKAGE_REDIRECTS_DIR}"
"-DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}"
"$<$<STREQUAL:${CMAKE_Fortran_COMPILER_ID},Cray>:-DCMAKE_MODULE_PATH=${CMAKE_SOURCE_DIR}/../cmake>"
"$<$<STREQUAL:${CMAKE_Fortran_COMPILER_ID},Cray>:-DCMAKE_MODULE_PATH=${CMAKE_SOURCE_DIR}/../cmake/cce>"
)
endif()
endif()
Expand Down
3 changes: 0 additions & 3 deletions toolchain/mfc/args.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@ def add_common_arguments(p, mask = None):
if "v" not in mask:
p.add_argument("-v", "--verbose", action="store_true", help="Enables verbose compiler & linker output.")

if "n" not in mask:
p.add_argument(f"--sys-hdf5", action="store_true", help=f"Do not build the hdf5 dependency. Use the system's instead.")

if "g" not in mask:
p.add_argument("-g", "--gpus", nargs="+", type=int, default=None, help="(Optional GPU override) List of GPU #s to use (environment default if unspecified).")

Expand Down

0 comments on commit cbf9e56

Please sign in to comment.