-
Notifications
You must be signed in to change notification settings - Fork 0
/
org.freedesktop.Platform.GL.rocm.yml
111 lines (107 loc) · 3.74 KB
/
org.freedesktop.Platform.GL.rocm.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
id: org.freedesktop.Platform.GL.rocm
branch: "22.08"
runtime: org.freedesktop.Platform
runtime-version: "22.08"
build-extension: true
writable-sdk: true
sdk: org.freedesktop.Sdk
separate-locales: false
build-options:
cflags: -O2 -g -I/usr/lib/x86_64-linux-gnu/GL/rocm/include
cxxflags: -O2 -g
prefix: /usr/lib/GL/rocm
cleanup: [ ]
modules:
# - name: z3
# buildsystem: simple
# builddir: true
# build-options:
# prefix: /usr/lib/x86_64-linux-gnu/GL/rocm/z3
# build-commands:
# - python scripts/mk_make.py --prefix=/usr/lib/x86_64-linux-gnu/GL/rocm/z3
# - cd build && make && make install
# sources:
# - type: archive
# url: https://github.com/Z3Prover/z3/archive/z3-4.11.2.tar.gz
# sha512: be2573d38c0e50b46fcb025d50335e016769fdeab3c26f5dc2a13102fae889d23039258ea8d38de3f53daa4cf073704d8639ac291e781a74633194adedaae21a
- name: rocm-cmake
buildsystem: cmake
sources:
- type: archive
url: https://github.com/RadeonOpenCompute/rocm-cmake/archive/rocm-5.4.2.tar.gz
sha256: f2b325b3f0854234c670977e8ecd07f97eb7c0a647d5316649b8856bbc1d1122
dest-filename: cmake-rocm-5.4.2.tar.gz
config-opts:
- -DCMAKE_BUILD_TYPE=Release
- name: rocm-llvm
build-options:
cflags: -O2 -g -I/usr/lib/GL/rocm/llvm/include
cxxflags: -O2 -g
prefix: /usr/lib/GL/rocm/llvm
# buildsystem: cmake-ninja
# subdir: llvm
# builddir: true
# config-opts:
# - -DCMAKE_BUILD_TYPE=RelWithDebInfo
# - -DCMAKE_INSTALL_PREFIX=/usr/lib/x86_64-linux-gnu/GL/rocm/llvm
# - -DLLVM_ENABLE_ASSERTIONS=1
# - -DBUILD_SHARED_LIBS=0
# - -DLLVM_BUILD_LLVM_DYLIB=1
# - -DLLVM_LINK_LLVM_DYLIB=1
# - -DLLVM_TARGETS_TO_BUILD='AMDGPU;X86'
# - -DLLVM_ENABLE_PROJECTS='compiler-rt;lld;clang'
# - -DLLVM_ENABLE_LIBCXX=OFF
# - -DLLVM_ENABLE_ZLIB=ON
# - -DLLVM_ENABLE_FFI=ON
# - -DLLVM_ENABLE_RTTI=ON
# - -DLLVM_INCLUDE_TESTS=OFF
# - -DLLVM_INCLUDE_EXAMPLES=0
# - -DLLVM_INCLUDE_UTILS=1
# - -DLLVM_INSTALL_UTILS=1
# - -DLLVM_INCLUDE_DOCS=0
# - -DLLVM_ENABLE_DOXYGEN=0
# - -DLLVM_BUILD_EXTERNAL_COMPILER_RT=1
# - -DLLVM_INSTALL_TOOLCHAIN_ONLY=0
# - -DCMAKE_C_FLAGS_RELWITHDEBINFO="-DNDEBUG"
# - -DCMAKE_CXX_FLAGS_RELWITHDEBINFO="-DNDEBUG"
# - -DLLVM_LIBDIR_SUFFIX="/usr/lib/x86_64-linux-gnu"
# - -DLLVM_BINUTILS_INCDIR=/usr/include
buildsystem: simple
useless: yes
build-commands:
- cmake
-DCMAKE_BUILD_TYPE=RelWithDebInfo
-DCMAKE_INSTALL_PREFIX=/usr/lib/GL/rocm/llvm
-DLLVM_ENABLE_ASSERTIONS=ON
-DBUILD_SHARED_LIBS=OFF
-DLLVM_BUILD_LLVM_DYLIB=OFF
-DLLVM_LINK_LLVM_DYLIB=OFF
-DLLVM_ENABLE_BINDINGS=OFF
-DLLVM_TARGETS_TO_BUILD='AMDGPU;X86'
-DLLVM_ENABLE_PROJECTS='compiler-rt;lld;clang'
-DLLVM_ENABLE_LIBCXX=OFF
-DLLVM_INCLUDE_TESTS=OFF
-DLLVM_INCLUDE_EXAMPLES=OFF
-DLLVM_INCLUDE_UTILS=ON
-DLLVM_INSTALL_UTILS=ON
-DLLVM_INCLUDE_DOCS=OFF
-DLLVM_ENABLE_DOXYGEN=OFF
-DLLVM_BUILD_EXTERNAL_COMPILER_RT=ON
-DLLVM_INSTALL_TOOLCHAIN_ONLY=OFF
-DLLVM_INCLUDE_BENCHMARKS=OFF
-DCMAKE_C_FLAGS_RELWITHDEBINFO="-DNDEBUG"
-DCMAKE_CXX_FLAGS_RELWITHDEBINFO="-DNDEBUG"
-DLLVM_BINUTILS_INCDIR=/usr/include
-DOCAMLFIND=NO
-DLLVM_ENABLE_OCAMLDOC=OFF
-DLLVM_ENABLE_BINDINGS=OFF
-G Ninja
-Hllvm
-Bbuild
llvm
- cd build && cmake --build . --target install
sources:
- type: archive
url: https://github.com/RadeonOpenCompute/llvm-project/archive/rocm-5.4.2.tar.gz
sha256: 9f0d0429c342715de2f9215c6998440945cb510a566ba3ebda7d14b34f2daccc
dest-filename: llvm-rocm-5.4.2.tar.gz