Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
demo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Georgiana Mania
demo
Merge requests
!7
Implement separate Fortran and C++ Drivers.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Implement separate Fortran and C++ Drivers.
fb-impl-fortran-driver
into
main
Overview
0
Commits
3
Changes
6
Merged
Joerg Behrens
requested to merge
fb-impl-fortran-driver
into
main
1 month ago
Overview
0
Commits
3
Changes
6
Expand
Provide Fortran driver with OpenACC to test portability close to the ICON use-case.
0
0
Merge request reports
Compare
main
version 1
9dd81bcb
1 month ago
main (base)
and
version 1
latest version
38e7370c
3 commits,
1 month ago
version 1
9dd81bcb
1 commit,
1 month ago
6 files
+
415
−
77
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
6
Search (e.g. *.vue) (Ctrl+P)
CMakeLists.txt
+
21
−
2
Options
cmake_minimum_required
(
VERSION 3.20
)
project
(
demo LANGUAGES CXX VERSION 0.0.1
)
project
(
demo LANGUAGES CXX
Fortran
VERSION 0.0.1
)
include
(
FetchContent
)
@@ -36,9 +36,28 @@ endif()
FetchContent_MakeAvailable
(
kokkos
)
add_executable
(
demo main.cpp
)
add_executable
(
demo
cdriver.cpp
main.cpp
)
target_link_libraries
(
demo PUBLIC Kokkos::kokkos
)
set_source_files_properties
(
fdriver.f90
PROPERTIES Fortran_PREPROCESS ON
)
if
(
Kokkos_ENABLE_CUDA OR Kokkos_ENABLE_HIP
)
set
(
WITH_OPENACC_FORTRAN 1
)
else
()
set
(
WITH_OPENACC_FORTRAN 0
)
endif
()
add_executable
(
fdemo fdriver.f90 main.cpp
)
target_link_libraries
(
fdemo PUBLIC Kokkos::kokkos
)
if
(
WITH_OPENACC_FORTRAN
)
find_package
(
OpenACC REQUIRED OpenACC_Fortran
)
target_link_libraries
(
fdemo PUBLIC OpenACC::OpenACC_Fortran
)
endif
()
set_property
(
TARGET fdemo PROPERTY LINKER_LANGUAGE Fortran
)
if
(
"
${
MU_ARCH
}
"
STREQUAL
"a100"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-acc -Minfo=accel -gpu=cc80"
)
add_compile_definitions
(
DEMO_DEVICE
)
Loading