-
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.
Merge remote-tracking branch 'ecmwf/develop' into bugfix/qhull
- Loading branch information
Showing
168 changed files
with
11,010 additions
and
2,552 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,15 @@ | ||
name: Notify new issue | ||
|
||
on: | ||
issues: | ||
types: | ||
- "opened" | ||
|
||
jobs: | ||
notify: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Notify new issue | ||
uses: ecmwf-actions/notify-teams-issue@v1 | ||
with: | ||
incoming_webhook: ${{ secrets.MS_TEAMS_INCOMING_WEBHOOK }} |
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,16 @@ | ||
name: Notify new PR | ||
|
||
# Needs the worklow to be located in the branche the PR is merged to | ||
on: | ||
pull_request_target: | ||
types: | ||
- "opened" | ||
|
||
jobs: | ||
notify: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Notify new PR | ||
uses: ecmwf-actions/notify-teams-pr@v1 | ||
with: | ||
incoming_webhook: ${{ secrets.MS_TEAMS_INCOMING_WEBHOOK }} |
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.37.0 | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,27 @@ | ||
### OpenACC | ||
|
||
if( atlas_HAVE_ATLAS_FIELD ) | ||
if( atlas_HAVE_ATLAS_FIELD AND HAVE_GPU ) | ||
|
||
set( ATLAS_ACC_CAPABLE FALSE ) | ||
if( HAVE_CUDA ) | ||
if( CMAKE_Fortran_COMPILER_ID MATCHES "PGI|NVHPC" ) | ||
set( ATLAS_ACC_CAPABLE TRUE ) | ||
if( DEFINED ATLAS_ENABLE_ACC ) | ||
set( ENABLE_ACC ${ATLAS_ENABLE_ACC} ) | ||
endif() | ||
endif() | ||
|
||
ecbuild_add_option( FEATURE ACC | ||
DESCRIPTION "OpenACC capable data structures" | ||
CONDITION ATLAS_ACC_CAPABLE ) | ||
|
||
if( atlas_HAVE_ACC ) | ||
if( CMAKE_Fortran_COMPILER_ID MATCHES "PGI|NVHPC" ) | ||
#set( ACC_Fortran_FLAGS -acc -ta=tesla,nordc ) | ||
set( ACC_Fortran_FLAGS "-acc=gpu;-gpu=gvmode,lineinfo,fastmath,rdc" ) | ||
set( ACC_C_FLAGS ${ACC_Fortran_FLAGS} ) | ||
find_program( ACC_C_COMPILER NAMES pgcc HINTS ${PGI_DIR} ${NVPHC_DIR} ENV PGI_DIR NVHPC_DIR PATH_SUFFIXES bin ) | ||
if( NOT ACC_C_COMPILER ) | ||
ecbuild_error( "Could not find OpenACC capable C compiler" ) | ||
if( ENABLE_ACC ) | ||
if( NOT HAVE_FORTRAN ) | ||
enable_language(Fortran) | ||
endif() | ||
find_package( OpenACC COMPONENTS Fortran CXX ) | ||
endif() | ||
|
||
ecbuild_add_option( FEATURE ACC | ||
DESCRIPTION "OpenACC capable data structures" | ||
CONDITION OpenACC_Fortran_FOUND ) | ||
if( HAVE_ACC ) | ||
set( ACC_LINK_OPTIONS ${OpenACC_Fortran_FLAGS} ) | ||
endif() | ||
endif() | ||
|
||
else() | ||
|
||
set( HAVE_ACC 0 ) | ||
set( atlas_HAVE_ACC 0 ) | ||
endif() | ||
|
||
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 |
---|---|---|
@@ -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
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,10 @@ | ||
# (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. | ||
|
||
add_subdirectory(structured-grid-stencils) | ||
|
12 changes: 12 additions & 0 deletions
12
doc/example-fortran/structured-grid-stencils/CMakeLists.txt
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,12 @@ | ||
# (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. | ||
|
||
ecbuild_add_executable( TARGET example-fortran-structured-grid-stencils | ||
OUTPUT_NAME program NOINSTALL | ||
SOURCES program.F90 | ||
LIBS atlas_f ) |
Oops, something went wrong.