-
Notifications
You must be signed in to change notification settings - Fork 42
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
Showing
92 changed files
with
3,408 additions
and
586 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
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 +1 @@ | ||
0.38.1 | ||
0.39.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
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,15 +1,37 @@ | ||
|
||
ecbuild_add_option( FEATURE CUDA | ||
DESCRIPTION "Enable CUDA support" | ||
DEFAULT OFF | ||
) | ||
# ecbuild_add_option( FEATURE CUDA | ||
# DESCRIPTION "Enable CUDA support" | ||
# DEFAULT OFF | ||
# ) | ||
# ecbuild_add_option( FEATURE HIP | ||
# DESCRIPTION "Enable CUDA support" | ||
# DEFAULT OFF | ||
# ) | ||
|
||
if( HAVE_CUDA ) | ||
|
||
enable_language( CUDA ) | ||
ecbuild_info( "CUDA language enabled" ) | ||
|
||
find_package( CUDAToolkit REQUIRED ) | ||
set( atlas_HAVE_CUDA 0 ) | ||
set( atlas_HAVE_HIP 0 ) | ||
set( atlas_HAVE_GPU 0 ) | ||
|
||
if( hic_HAVE_CUDA ) | ||
enable_language( CUDA ) | ||
ecbuild_info( "CUDA language enabled" ) | ||
find_package(CUDAToolkit REQUIRED) | ||
set( atlas_HAVE_CUDA 1 ) | ||
set( atlas_HAVE_GPU 1 ) | ||
elseif( hic_HAVE_HIP ) | ||
enable_language( HIP ) | ||
ecbuild_info( "HIP language enabled" ) | ||
find_package(hip CONFIG REQUIRED) | ||
set( atlas_HAVE_HIP 1 ) | ||
set( atlas_HAVE_GPU 1 ) | ||
endif() | ||
|
||
set( HAVE_CUDA ${atlas_HAVE_CUDA} ) | ||
set( HAVE_HIP ${atlas_HAVE_HIP} ) | ||
set( HAVE_GPU ${atlas_HAVE_GPU} ) | ||
|
||
if( HAVE_GPU ) | ||
ecbuild_info("GPU support enabled") | ||
else() | ||
ecbuild_info("GPU support not enabled") | ||
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
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,8 @@ | ||
Authors | ||
======= | ||
|
||
- Willem Deconinck | ||
|
||
Thanks for contributions from | ||
============================= | ||
|
Empty file.
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,56 @@ | ||
# (C) Copyright 2024- ECMWF. | ||
# | ||
# This software is licensed under the terms of the Apache Licence Version 2.0 | ||
# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. | ||
# In applying this licence, ECMWF does not waive the privileges and immunities | ||
# granted to it by virtue of its status as an intergovernmental organisation nor | ||
# does it submit to any jurisdiction. | ||
|
||
############################################################################################ | ||
# hic | ||
|
||
cmake_minimum_required( VERSION 3.18 FATAL_ERROR ) | ||
|
||
find_package( ecbuild 3.4 REQUIRED HINTS ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/../ecbuild ${CMAKE_CURRENT_SOURCE_DIR}/../../ecbuild ) | ||
|
||
################################################################################ | ||
# Initialise project | ||
|
||
if( NOT DEFINED atlas_VERSION ) | ||
set( atlas_VERSION 0.0.0 ) | ||
endif() | ||
|
||
project( hic VERSION ${atlas_VERSION} LANGUAGES CXX ) | ||
|
||
set(CMAKE_CXX_STANDARD 11) | ||
set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
|
||
################################################################################ | ||
# Features that can be enabled / disabled with -DENABLE_<FEATURE> | ||
|
||
ecbuild_add_option( FEATURE CUDA DESCRIPTION "Use CUDA as backend to HIC" DEFAULT OFF ) | ||
ecbuild_add_option( FEATURE HIP DESCRIPTION "Use HIP as backend to HIC" DEFAULT OFF ) | ||
|
||
if( HAVE_CUDA ) | ||
find_package(CUDAToolkit REQUIRED) | ||
elseif( HAVE_HIP ) | ||
find_package(hip CONFIG REQUIRED) | ||
endif() | ||
|
||
add_subdirectory( src ) | ||
add_subdirectory( tests ) | ||
|
||
################################################################################ | ||
# Export and summarize | ||
|
||
ecbuild_add_resources( | ||
TARGET hic-others | ||
SOURCES_PACK | ||
README.md | ||
CHANGELOG.md | ||
LICENSE | ||
) | ||
|
||
ecbuild_install_project( NAME hic ) | ||
ecbuild_print_summary() | ||
|
Oops, something went wrong.