Runtime build error

Could the AMD GPU expert take a look at this?

[392/1125] Building LLVM bitcode Mapping.cpp-gfx90a.bc
/p/scratch/cjinb33/kitayama1/projects/llvm-project/openmp/libomptarget/DeviceRTL/src/Mapping.cpp:32:32:
warning: inline function '_OMP::impl::getGridValue' is not defined
[-Wundefined-inline]
constexpr const llvm::omp::GV &getGridValue() {
                               ^
/p/scratch/cjinb33/kitayama1/projects/llvm-project/openmp/libomptarget/DeviceRTL/src/Mapping.cpp:156:33:
note: used here
uint32_t getWarpSize() { return getGridValue().GV_Warp_Size; }
                                ^
1 warning generated.
[436/1125] Building LLVM bitcode Mapping.cpp-gfx1010.bc
/p/scratch/cjinb33/kitayama1/projects/llvm-project/openmp/libomptarget/DeviceRTL/src/Mapping.cpp:32:32:
warning: inline function '_OMP::impl::getGridValue' is not defined
[-Wundefined-inline]
constexpr const llvm::omp::GV &getGridValue() {
                               ^
/p/scratch/cjinb33/kitayama1/projects/llvm-project/openmp/libomptarget/DeviceRTL/src/Mapping.cpp:156:33:
note: used here
uint32_t getWarpSize() { return getGridValue().GV_Warp_Size; }
                                ^
1 warning generated.
[488/1125] Building CXX object openmp/...ptarget.rtl.amdgpu.dir/impl/impl.cpp.o
FAILED: openmp/libomptarget/plugins/amdgpu/CMakeFiles/omptarget.rtl.amdgpu.dir/impl/impl.cpp.o
/tmp/build/./bin/clang++ --target=x86_64-unknown-linux-gnu
-DOMPTARGET_DEBUG -DTARGET_NAME=AMDGPU -D__STDC_CONSTANT_MACROS
-D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
-Domptarget_rtl_amdgpu_EXPORTS
-I/p/scratch/cjinb33/kitayama1/projects/llvm-project/openmp/libomptarget/include
-I/p/scratch/cjinb33/kitayama1/projects/llvm-project/openmp/libomptarget/plugins/amdgpu/impl
-I/p/scratch/cjinb33/kitayama1/projects/llvm-project/llvm/include
-I/tmp/build/include
-I/p/scratch/cjinb33/kitayama1/projects/llvm-project/openmp/libomptarget/plugins/amdgpu/dynamic_hsa
-I/p/scratch/cjinb33/kitayama1/projects/llvm-project/openmp/libomptarget/plugins/common/elf_common
-isystem /p/software/jurecadc/stages/2020/software/zlib/1.2.11-GCCcore-10.3.0/include
-fPIC -fno-semantic-interposition -fvisibility-inlines-hidden
-Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra
-Wno-unused-parameter -Wwrite-strings -Wcast-qual
-Wmissing-field-initializers -Wimplicit-fallthrough
-Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor
-Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment
-Wstring-conversion -Wmisleading-indentation -fdiagnostics-color
-ffunction-sections -fdata-sections -Wall -Wcast-qual
-Wformat-pedantic -Wimplicit-fallthrough -Wsign-compare -Wno-extra
-Wno-pedantic -std=c++14 -O3 -DNDEBUG -fPIC -MD -MT
openmp/libomptarget/plugins/amdgpu/CMakeFiles/omptarget.rtl.amdgpu.dir/impl/impl.cpp.o
-MF openmp/libomptarget/plugins/amdgpu/CMakeFiles/omptarget.rtl.amdgpu.dir/impl/impl.cpp.o.d
-o openmp/libomptarget/plugins/amdgpu/CMakeFiles/omptarget.rtl.amdgpu.dir/impl/impl.cpp.o
-c /p/scratch/cjinb33/kitayama1/projects/llvm-project/openmp/libomptarget/plugins/amdgpu/impl/impl.cpp
/p/scratch/cjinb33/kitayama1/projects/llvm-project/openmp/libomptarget/plugins/amdgpu/impl/impl.cpp:55:9:
error: use of undeclared identifier 'hsa_amd_memory_lock'; did you
mean 'hsa_amd_memory_pool_s'?
  err = hsa_amd_memory_lock(lockingPtr, size, nullptr, 0, (void **)&lockedPtr);
        ^
/p/scratch/cjinb33/kitayama1/projects/llvm-project/openmp/libomptarget/plugins/amdgpu/dynamic_hsa/hsa_ext_amd.h:21:16:
note: 'hsa_amd_memory_pool_s' declared here
typedef struct hsa_amd_memory_pool_s {
               ^
/p/scratch/cjinb33/kitayama1/projects/llvm-project/openmp/libomptarget/plugins/amdgpu/impl/impl.cpp:66:3:
warning: default label in switch which covers all enumeration values
[-Wcovered-switch-default]
  default:
  ^
/p/scratch/cjinb33/kitayama1/projects/llvm-project/openmp/libomptarget/plugins/amdgpu/impl/impl.cpp:72:5:
error: use of undeclared identifier 'hsa_amd_memory_unlock'
    hsa_amd_memory_unlock(lockingPtr);
    ^
/p/scratch/cjinb33/kitayama1/projects/llvm-project/openmp/libomptarget/plugins/amdgpu/impl/impl.cpp:76:9:
error: use of undeclared identifier 'hsa_amd_memory_unlock'
  err = hsa_amd_memory_unlock(lockingPtr);
        ^
1 warning and 3 errors generated.
[745/1125] Building CXX object openmp/.../CMakeFiles/omp.dir/kmp_settings.cpp.o
ninja: build stopped: subcommand failed.
FAILED: runtimes/runtimes-stamps/runtimes-build

It is building fine again thanks.