Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BuildRules] First implementation of RocM build rules #8268

Merged
merged 6 commits into from
Jan 29, 2023
Merged
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
2 changes: 1 addition & 1 deletion scram-project-build.file
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ BuildRequires: dwz
%endif

%if "%{?configtag:set}" != "set"
%define configtag V07-03-18
%define configtag V07-04-02
%endif

%if "%{?cvssrc:set}" != "set"
Expand Down
16 changes: 0 additions & 16 deletions scram-tools.file/tools/rocm/rocm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,10 @@
<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="INCLUDE" default="$ROCM_BASE/include"/>
<environment name="INCLUDE" default="$ROCM_BASE/hip/include"/>
<environment name="INCLUDE" default="$ROCM_BASE/hsa/include"/>
</client>
<flags CPPDEFINES="__HIP_PLATFORM_HCC__ __HIP_PLATFORM_AMD__"/>
<flags ROCM_FLAGS="-fgpu-rdc --offload-arch=gfx900 --target=@COMPILER_HOST@ --gcc-toolchain=$(COMPILER_PATH)"/>
<!-- 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"/>
<runtime name="ROOT_INCLUDE_PATH" value="$INCLUDE" type="path" join="1"/>
<runtime name="PATH" value="$ROCM_BASE/bin" type="path"/>
</tool>