Commit 1cce409
Refactor wheel and libtorch build scripts (ROCm#7)
* Update to so patching for ROCm
Wildcard used in grep to grab the actual numbered so file referenced
in patchelf. This allows the removal of specifying the so number in
DEPS_LIST & DEPS_SONAME
This commit also adds the functionality for trimming so names to
build_libtorch.sh from build_common.sh
* Refactor to remove switch statement in build_rocm.sh
This commit refactors build_rocm.sh and brings in a few major updates:
- No longer required to specify the full .so name (with number) for ROCm libraries
- The .so versions are copied and the patching code will fix the links to point to this version
- No longer required to specify paths for ROCm libraries allowing the removal of the large switch
- Paths are acquired programmatically with find
- No longer required to specify both the path and filename for the OS specific libraries
- Programatically extract file name from the path
- Automatically extract Tensile/Kernels files for the architectures specified in PYTORCH_ROCM_ARCH
and any non-arch specific files e.g. TensileLibrary.dat1 parent 00d0ac6 commit 1cce409
3 files changed
+87
-549
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
282 | | - | |
| 282 | + | |
283 | 283 | | |
284 | | - | |
| 284 | + | |
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
231 | 236 | | |
232 | 237 | | |
233 | 238 | | |
| |||
277 | 282 | | |
278 | 283 | | |
279 | 284 | | |
280 | | - | |
281 | | - | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
282 | 291 | | |
283 | 292 | | |
284 | 293 | | |
| |||
292 | 301 | | |
293 | 302 | | |
294 | 303 | | |
295 | | - | |
| 304 | + | |
296 | 305 | | |
297 | | - | |
| 306 | + | |
298 | 307 | | |
299 | 308 | | |
300 | 309 | | |
| |||
0 commit comments