-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add scram tool files for HIP/ROCm and hipRAND/rocRAND
- Loading branch information
Showing
2 changed files
with
48 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<tool name="rocm-rocrand" version="@TOOL_VERSION@"> | ||
<info url="https://github.com/ROCmSoftwarePlatform/rocRAND"/> | ||
<use name="rocm"/> | ||
<lib name="hiprand"/> | ||
<lib name="rocrand"/> | ||
<client> | ||
<environment name="ROCM_ROCRAND_BASE" default="@TOOL_ROOT@"/> | ||
<environment name="LIBDIR" default="$ROCM_ROCRAND_BASE/lib"/> | ||
<environment name="INCLUDE" default="$ROCM_ROCRAND_BASE/include/hiprand"/> | ||
<environment name="INCLUDE" default="$ROCM_ROCRAND_BASE/include/rocrand"/> | ||
</client> | ||
</tool> |
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,36 @@ | ||
<tool name="rocm" version="@TOOL_VERSION@"> | ||
<info url="https://docs.amd.com/"/> | ||
<lib name="amdhip64"/> | ||
<client> | ||
<environment name="ROCM_BASE" default="@TOOL_ROOT@"/> | ||
<environment name="ROCM_LLVM" default="$ROCM_BASE/llvm/lib/clang/14.0.0"/> | ||
<environment name="HIPCC" default="$ROCM_BASE/bin/hipcc"/> | ||
<environment name="BINDIR" default="$ROCM_BASE/bin"/> | ||
<environment name="LIBDIR" default="$ROCM_BASE/lib"/> | ||
<environment name="LIBDIR" default="$ROCM_BASE/lib64"/> | ||
<environment name="LIBDIR" default="$ROCM_BASE/hip/lib"/> | ||
<environment name="LIBDIR" default="$ROCM_BASE/hsa/lib"/> | ||
<environment name="LIBDIR" default="$ROCM_LLVM/lib/linux"/> | ||
<environment name="LIBDIR" default="$ROCM_BASE/llvm/lib"/> | ||
<environment name="INCLUDE" default="$ROCM_BASE/include"/> | ||
<environment name="INCLUDE" default="$ROCM_BASE/hip/include"/> | ||
<environment name="INCLUDE" default="$ROCM_BASE/hsa/include"/> | ||
<environment name="INCLUDE" default="$ROCM_LLVM"/> | ||
</client> | ||
<flags ROCM_FLAGS="-fno-gpu-rdc --amdgpu-target=gfx900 --gcc-toolchain=$COMPILER_PATH -D__HIP_PLATFORM_HCC__ -D__HIP_PLATFORM_AMD__"/> | ||
<!-- REM_CXXFLAGS from llvm/llvm-cxxcompiler.xml --> | ||
<flags ROCM_HOST_REM_CXXFLAGS="-Wno-non-template-friend"/> | ||
<flags ROCM_HOST_REM_CXXFLAGS="-Werror=format-contains-nul"/> | ||
<flags ROCM_HOST_REM_CXXFLAGS="-Werror=maybe-uninitialized"/> | ||
<flags ROCM_HOST_REM_CXXFLAGS="-Werror=unused-but-set-variable"/> | ||
<flags ROCM_HOST_REM_CXXFLAGS="-Werror=return-local-addr"/> | ||
<flags ROCM_HOST_REM_CXXFLAGS="-fipa-pta"/> | ||
<flags ROCM_HOST_REM_CXXFLAGS="-frounding-math"/> | ||
<flags ROCM_HOST_REM_CXXFLAGS="-mrecip"/> | ||
<flags ROCM_HOST_REM_CXXFLAGS="-fno-crossjumping"/> | ||
<flags ROCM_HOST_REM_CXXFLAGS="-fno-aggressive-loop-optimizations"/> | ||
<flags ROCM_HOST_REM_CXXFLAGS="-funroll-all-loops"/> | ||
<flags ROCM_HOST_CXXFLAGS="-D__HIP_PLATFORM_HCC__ -D__HIP_PLATFORM_AMD__"/> | ||
<runtime name="ROOT_INCLUDE_PATH" value="$INCLUDE" type="path"/> | ||
<runtime name="PATH" value="$ROCM_BASE/bin" type="path"/> | ||
</tool> |