Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bin/aomp_common_vars
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ AOMP_COMPILER_NAME=${AOMP_COMPILER_NAME:-AOMP}
ROCM_VERSION=${ROCM_VERSION:-6.4.0}

# Set the AOMP VERSION STRING
AOMP_VERSION=${AOMP_VERSION:-"23.0"}
AOMP_VERSION_MOD=${AOMP_VERSION_MOD:-"1"}
AOMP_VERSION=${AOMP_VERSION:-"24.0"}
AOMP_VERSION_MOD=${AOMP_VERSION_MOD:-"0"}
AOMP_VERSION_STRING=${AOMP_VERSION_STRING:-"$AOMP_VERSION-$AOMP_VERSION_MOD"}
ROCM_EXPECTED_MODVERSION=${ROCM_EXPECTED_MODVERSION:-6.2.4}
export AOMP_VERSION_STRING AOMP_VERSION AOMP_VERSION_MOD ROCM_VERSION ROCM_EXPECTED_MODVERSION
Expand Down
15 changes: 15 additions & 0 deletions bin/patches/patch-control-file_24.0.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
openlibm: openlibm.patch
RAJA: raja.patch
RAJAPerf: rajaperf.patch
GenASis: genasis.patch
GenASiS_Basics: genasis_basics.patch
hipamd:
bolt: bolt.patch
rocr-runtime: rocr-runtime-numa.patch
clr:
rocprofiler:
rocprofiler-sdk:
babelstream: babelstream-usm.patch
llvm-project: ATD_ASO_full.patch
UMT: umt.patch
rocm-xio: xio.patch
20 changes: 20 additions & 0 deletions manifests/aomp_24.0.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<!-- Manifest for AOMP 24.0-x which uses ROCM 7.13 release branches of external repositories -->

<remote name="roc" fetch="https://github.com/ROCm" />
<remote name="simde" fetch="https://github.com/simd-everywhere" />

<!-- These first 4 repos are NOT rocm 7.13. They are compiler developer branches -->
<project remote="roc" path="llvm-project" name="llvm-project.git" revision="amd-staging" groups="unlocked" />
<project remote="roc" path="SPIRV-LLVM-Translator" name="spirv-llvm-translator.git" revision="amd-staging" groups="unlocked" />
<project remote="roc" path="hipify" name="hipify.git" revision="amd-staging" groups="unlocked" />
<project remote="simde" path="simde" name="simde" revision="master" groups="unlocked" />

<project remote="roc" path="aomp" name="aomp" revision="aomp-dev" groups="unlocked" />

<project remote="roc" path="ROCgdb" name="ROCgdb" upstream="amd-staging" revision="therock-7.13" tag="true" groups="revlocked" />
<project remote="roc" path="rocm-cmake" name="rocm-cmake" upstream="develop" revision="therock-7.13" tag="true" groups="revlocked" />
<project remote="roc" path="hipfort" name="hipfort" revision="release/rocm-rel-7.2" groups="unlocked" />
<project remote="roc" path="rocm-systems" name="rocm-systems" upstream="develop" revision="therock-7.13" tag="true" groups="revlocked" />
</manifest>
53 changes: 53 additions & 0 deletions manifests/test_24.0.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<default revision="develop" remote="gerritgit" sync-j="4" sync-c="true" />
<!-- Manifest for AOMP Testing repositories -->
<remote name="gerritgit" review="git.amd.com:8080" fetch="ssh://gerritgit/" />
<remote name="roctools" fetch="https://github.com/ROCm/" />
<remote name="roc" fetch="https://github.com/ROCm/" />
<remote name="rocm" fetch="https://github.com/rocm/" />
<remote name="llnl" fetch="https://github.com/LLNL/" />
<remote name="kokkos" fetch="https://github.com/kokkos/" />
<remote name="amdlibs" fetch="https://github.com/AMDComputeLibraries/" />
<remote name="omphost" fetch="https://github.com/doru1004/" />
<remote name="julia" fetch="https://github.com/JuliaMath/" />
<remote name="tapple" fetch="https://github.com/TApplencourt/" />
<remote name="qmcpack" fetch="https://github.com/QMCPACK/" />
<remote name="sollve" fetch="https://github.com/SOLLVE/" />
<remote name="OpenMP_VV" fetch="https://github.com/OpenMP-Validation-and-Verification/" />
<remote name="uob-hpc" fetch="https://github.com/UoB-HPC/" />
<remote name="GenASis" fetch="https://github.com/GenASis/" />
<remote name="GenASiS_Basics" fetch="https://github.com/GenASiS/" />
<remote name="UMT" fetch="https://github.com/LLNL/" />
<remote name="lcf" fetch="https://github.com/zjin-lcf/" />
<remote name="RSBench" fetch="https://github.com/ANL-CESAR/" />
<remote name="XSBench" fetch="https://github.com/ANL-CESAR/" />
<remote name="su3_bench" fetch="https://gitlab.com/NERSC/nersc-proxies/" />

<!-- --- List of test repos and the path they are cloned to --- -->

<project remote="llnl" path="goulash" name="goulash" revision="master" groups="unlocked" />
<project remote="kokkos" path="kokkos" name="kokkos" revision="develop" groups="unlocked" />
<project remote="amdlibs" path="Nekbone" name="Nekbone" revision="amd-openmp" groups="unlocked" />
<project remote="omphost" path="omptests" name="omptests" revision="main" groups="unlocked" />
<project remote="julia" path="openlibm" name="openlibm" revision="v0.7.2" groups="unlocked" />
<project remote="amdlibs" path="openmpapps" name="openmpapps" revision="AOMP-0.5" groups="unlocked" />
<project remote="tapple" path="OvO" name="OvO" revision="master" groups="unlocked" />
<project remote="qmcpack" path="qmcpack" name="qmcpack" revision="develop" groups="unlocked" />
<project remote="sollve" path="sollve_vv" name="sollve_vv" revision="master" groups="unlocked" />
<project remote="OpenMP_VV" path="OpenMP_VV" name="OpenMP_VV" revision="master" groups="unlocked" />
<project remote="uob-hpc" path="babelstream" name="BabelStream" revision="main" groups="unlocked" />
<project remote="uob-hpc" path="fortran-babelstream" name="BabelStream" revision="develop" groups="unlocked" />
<project remote="llnl" path="RAJAPerf" name="RAJAPerf" revision="develop" groups="unlocked" />
<project remote="llnl" path="RAJAPerf/tpl/RAJA" name="RAJA" revision="master" groups="skip" />
<project remote="llnl" path="RAJAPerf/blt" name="blt" revision="" groups="skip" />
<project remote="GenASis" path="GenASis" name="GenASis" revision="master" groups="unlocked" />
<project remote="GenASiS_Basics" path="GenASiS_Basics" name="GenASiS_Basics" revision="master" groups="unlocked" />
<project remote="UMT" path="UMT" name="UMT" revision="develop" groups="unlocked" />
<project remote="lcf" path="HeCBench" name="HeCBench" revision="master" groups="unlocked" />
<project remote="rocm" path="rccl-tests" name="rccl-tests" revision="master" groups="unlocked" />
<project remote="RSBench" path="RSBench" name="RSBench" revision="master" groups="unlocked" />
<project remote="XSBench" path="XSBench" name="XSBench" revision="master" groups="unlocked" />
<project remote="su3_bench" path="su3bench" name="su3_bench.git" revision="master" groups="unlocked" />

</manifest>
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
diff --git a/compiler/CMakeLists.txt b/compiler/CMakeLists.txt
index bf625919..cdc6c493 100644
index 7279cdbb3..103eb2332 100644
--- a/compiler/CMakeLists.txt
+++ b/compiler/CMakeLists.txt
@@ -13,6 +13,10 @@ if(THEROCK_ENABLE_COMPILER)
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
list(APPEND _extra_llvm_cmake_args "-DLLVM_ENABLE_PEDANTIC=OFF")
@@ -22,6 +22,10 @@ if(THEROCK_ENABLE_COMPILER)
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
list(APPEND _extra_llvm_cmake_args "-DCMAKE_DISABLE_PRECOMPILE_HEADERS=ON")
endif()
+ if (DEFINED ENV{SROCK_VERSION_MOD})
+ list(APPEND _extra_llvm_cmake_args "-DLLVM_VERSION_SUFFIX=_SROCK")
Expand Down
5 changes: 3 additions & 2 deletions srock-bin/srock_common_vars
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,15 @@ if [ ! -d "$SROCK_REPOS" ] ; then
fi
fi

SROCK_VERSION=${SROCK_VERSION:-"7.13"}
SROCK_VERSION=${SROCK_VERSION:-"7.15"}
SROCK_VERSION_MOD=${SROCK_VERSION_MOD:-"0"}
SROCK_VERSION_STRING=${SROCK_VERSION_STRING:-"$SROCK_VERSION-$SROCK_VERSION_MOD"}
SROCK_MAJOR_VERSION=${SROCK_VERSION%.*}

# Set SROCK_COMPILER_BRANCH to develop to get a native TheRock build
SROCK_COMPILER_BRANCH=${SROCK_COMPILER_BRANCH:-amd-staging}
SROCK_THEROCK_BRANCH=${SROCK_THEROCK_BRANCH:-compiler/amd-staging}
#SROCK_THEROCK_BRANCH=${SROCK_THEROCK_BRANCH:-compiler/amd-staging}
SROCK_THEROCK_BRANCH=${SROCK_THEROCK_BRANCH:-main}
SROCK_CONFIG=${SROCK_CONFIG:-minimal}

# Set default value for ROCm install directory SROCK_INSTALL_DIR.
Expand Down
18 changes: 18 additions & 0 deletions test/smoke-fort-dev/device_intrinsics_map/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#NOOPT = 1
#NOOMP = 1
#OMP_FLAGS = -fopenmp
include ../../Makefile.defs

TESTNAME = device_intrinsics_map
TESTSRC_MAIN = device_intrinsics_map.f90
TESTSRC_AUX =
TESTSRC_ALL = $(TESTSRC_MAIN) $(TESTSRC_AUX)

FLANG ?= flang
OMP_BIN = $(AOMP)/bin/$(FLANG)
CC = $(OMP_BIN) $(VERBOSE)
CFLAGS = $(FLANG_GPU_LINK_FLAGS)
#-ccc-print-phases
#"-\#\#\#"

include ../Makefile.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
!
!Copyright © Advanced Micro Devices, Inc., or its affiliates.
!
!SPDX-License-Identifier: MIT
!
module mod
implicit none
contains
subroutine assgn(a, ma, mi, ms)
implicit none
real, dimension(:), allocatable :: a
real :: ma, mi, ms
!$omp target map(tofrom: a,ma,mi,ms)
ma = maxval(a)
mi = minval(a)
ms = sum(a)
!$omp end target
end subroutine assgn
end module mod

program device_intrinsics
use mod
implicit none

integer, parameter :: n = 1024
integer :: i
real, dimension(:), allocatable :: a
real, dimension(:), allocatable :: b
real :: ma, mi, ms

allocate(a(n))
allocate(b(n))

a = [( real(i),i=1,n )]
b = [( real(i),i=1,n )]

!$omp target enter data map(to:a) map(alloc:ma,mi,ms)
call assgn(a, ma, mi, ms)
!$omp target exit data map(delete:a) map(from:ma,mi,ms)

if (mi /= minval(b) .or. ma /= maxval(b) .or. ms /= sum(b)) then
print '(a)', 'ERROR'
stop 1
end if
print '(a)', 'SUCCESS'

deallocate(a)
end program device_intrinsics
26 changes: 13 additions & 13 deletions trunk/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# How to Build the _trunk23_ Compiler
# How to Build the _trunk24_ Compiler

Add the following to your environment in either `.bash_profile` or `.bashrc`:

``` bash
export TRUNK_REPOS=$HOME/git/trunk23.0
export TRUNK_REPOS=$HOME/git/trunk24.0
```

Or set `TRUNK_REPOS` to a location with a fast file system. Then log in again
Expand Down Expand Up @@ -32,17 +32,17 @@ override.

## TRUNK_REPOS

See the discussion above for building _trunk23_ on the use of `TRUNK_REPOS`.
See the discussion above for building _trunk24_ on the use of `TRUNK_REPOS`.


## TRUNK_LINK

The default value for `TRUNK_LINK` is `"$HOME/rocm/trunk"`. The `build_trunk.sh`
script will install into directory `${TRUNK_LINK}_23.0-0`.
script will install into directory `${TRUNK_LINK}_24.0-0`.

Furthermore, it creates a symbolic link from `$TRUNK_LINK` to the install dir.
So `$TRUNK_LINK` **MUST NOT** be a physical directory. This symbolic link makes
it easy to switch between future qualifed releases of _trunk23_. If you are on a
it easy to switch between future qualifed releases of _trunk24_. If you are on a
system where `$HOME` is in a slow filesystem, set `TRUNK_LINK` to where you want
the install directory to be. For example set the following in your
`.bash_profile` or `.bashrc` then relogin:
Expand All @@ -51,7 +51,7 @@ the install directory to be. For example set the following in your
export TRUNK_LINK=/work/$USER/rocm/trunk
```

Then the install scripts will install into `/work/$USER/rocm/trunk_23.0-0` and
Then the install scripts will install into `/work/$USER/rocm/trunk_24.0-0` and
a symlink will be created from `$TRUNK_LINK`.


Expand Down Expand Up @@ -160,16 +160,16 @@ The default for `BUILD_TYPE` is "Release". This sets the value for
`CMAKE_BUILD_TYPE`. See CMake documentation for different possible values.


# Releases of _trunk23_
# Releases of _trunk24_

At various development check points we will qualify releases of _trunk23_ and
At various development check points we will qualify releases of _trunk24_ and
increment the development version in `trunk_common_vars`. For example, after the
release of `trunk_23.0-0`, development will move to `trunk_23.0-1`. The build
scripts will then install into directory `$HOME/rocm/trunk_23.0-1`. The symbolic
release of `trunk_24.0-0`, development will move to `trunk_24.0-1`. The build
scripts will then install into directory `$HOME/rocm/trunk_24.0-1`. The symbolic
link from `$HOME/rocm/trunk` will also change to the new install directory.

After a _trunk23_ release, a static release branch will be created. such as
`trunk_23.0-0`. This branch will be created by interactive rebasing all the
After a _trunk24_ release, a static release branch will be created. such as
`trunk_24.0-0`. This branch will be created by interactive rebasing all the
local commits in `amd-trunk-dev`. Development will continue in the branch
`amd-trunk-dev`.

Expand All @@ -183,7 +183,7 @@ similar to the `clone_aomp.sh` script used for AOMP. For now, simply run
merges from main.


# Testing _trunk23_
# Testing _trunk24_

To use the various AOMP testing infrastructure in `$TRUNK_REPOS/aomp/test`:

Expand Down
2 changes: 1 addition & 1 deletion trunk/trunk_common_vars
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# set environment variables defined in this file.
#
# Set the TRUNK VERSION STRING and TRUNK_PROJECT_REPO_BRANCH.
TRUNK_VERSION=${TRUNK_VERSION:-"23.0"}
TRUNK_VERSION=${TRUNK_VERSION:-"24.0"}
TRUNK_VERSION_MOD=${TRUNK_VERSION_MOD:-"0"}
TRUNK_VERSION_STRING=${TRUNK_VERSION_STRING:-"$TRUNK_VERSION-$TRUNK_VERSION_MOD"}
export TRUNK_VERSION_STRING TRUNK_VERSION TRUNK_VERSION_MOD
Expand Down
Loading