508 Коммитов

Автор SHA1 Сообщение Дата
Salinas, David 84e9845897 SWDEV-536367 - Make DEPRECATED message in roc-obj tools STDERR (#469)
[ROCm/clr commit: 71c6535b07]
2025-07-09 17:01:33 +05:30
Searles, Mark e480220c6a Fix typos in warning msgs (#231)
[ROCm/clr commit: cd9bc61559]
2025-05-02 14:31:42 -07:00
David Salinas e2da5772ff Deprecate roc-obj* tooling
- make Perl packages RECOMENDS/SUGGESTS for hip-dev
  - update CHANGE log

  SWDEV-511528 - TECH Remove ROCM Perl dependency - hip-dev
  SWDEV-333176 - Shift functionality of 'roc-obj-*' perl scripts into llvm-objdump

Change-Id: Iec3ba245848781f95c825f0d37aff4b4fb54f5e4


[ROCm/clr commit: c942833b34]
2025-02-13 11:42:57 -05:00
David Salinas 7de3d5a95a roc-obj uses incorrect path to find ROCm's llvm-objdump
SWDEV-448278 - [LLNLA-260] (ELCAP-546) roc-obj uses bad path

Change-Id: I1a19f1fea29b301cfc183018fa050a8b8aeaaf02


[ROCm/clr commit: 383ed4cedf]
2024-03-14 10:55:25 -04:00
David Salinas ecc933301a Enable support for roc-obj tools on Windows
SWDEV-301785 - roc-obj - support for Windows COFF

Change-Id: I20d53196e2d126391934351cb824b7bc926fb1ce


[ROCm/clr commit: 9fa8dcd1d1]
2024-01-04 10:31:02 -05:00
David Salinas 7792716dcf SWDEV-404809 - hip packages shouldn't depend in non-default perl modules
Change-Id: I30829a735dd6a6f1d5780578e30701e3f8d3394a


[ROCm/clr commit: c1126fc727]
2023-08-04 12:34:44 -04:00
Maneesh Gupta 3a7b8156a3 Revert "SWDEV-330775 - Update search path for LLVM"
This reverts commit f31b0874fd.

Reason for revert: SWDEV-368704

Change-Id: I8c38b4f40285f90f7d99145b970c2a14d051d5bb


[ROCm/clr commit: fab70a41ed]
2022-11-22 09:14:24 -05:00
Siu Chi Chan f31b0874fd SWDEV-330775 - Update search path for LLVM
ROCm's LLVM will be moved into /opt/rocm-<ver>/lib/, teach hipcc and
hipconfig about the new location.

Change-Id: Ie7f17146771aff94c684deb22148226cbb3a2895


[ROCm/clr commit: 3d15f9cbda]
2022-11-14 13:31:07 -05:00
Konstantin Zhuravlyov 1ff27025ee roc-obj-extract: Only push STDIN if there are no arguments
- Otherwise this consumes the caller's stdin by accident.

Patch by:
  - Bolo -- Josef Burger
  - https://github.com/bigtrak

Change-Id: I669376c025c0cde2cfdd59b5a4a14a71c5d8e862


[ROCm/clr commit: a0ecfd13a9]
2022-07-11 14:30:03 -04:00
David Salinas 407ff9fcef Correct roc-obj-extract URI handling and roc-obj-ls error handling
swdev-284841 : roc-obj-extract URI handling

  - The size fragment is optional and defaults to the rest of the file.
  - The size and offset are allowed in either order. The curent Perl is assuming the order and not checking the actual key value.
  - Should allow other fragments to be present and ignored.
  - Also suggest stating that the URI needs to be quoted if used in a shell command due to the "&".

swdev-313410: roc-obj-ls/roc-obj are not working as epxected for some cases
Change-Id: Iefd805c20a8dc525a8ea4a076d63e62eb631ffb3


[ROCm/clr commit: d5c46676b5]
2022-01-24 10:31:10 -05:00
Maneesh Gupta a4daa31a89 SWDEV-305592 - roc-obj missing execute permissions
Change-Id: I8d418c62805d5080c5054f815b4287cb1bcfa8fe


[ROCm/clr commit: dd4e3c9903]
2021-10-04 05:15:28 -04:00
David Salinas c6063fe27b SWDEV-294828 - Move roc-obj binaries from hip to hipamd
SWDEV-280149 - roc-obj-ls/roc-obj-extract don't extract all kernel code

Change-Id: Ibe8aff5ff02fced4d9034740da72d3aa8d67c6ae


[ROCm/clr commit: 64cbd7951d]
2021-09-02 01:12:38 -04:00
Rahul Garg dd95d3d23c ROCMOPS-1956 - Push restructured code to hipamd
hipamd will have AMD's ROCCLR based HIP backend implementation

Change-Id: Id7de9634519b4ce46fca71a1b61f3d5b1e3fc459


[ROCm/clr commit: 19c84bc604]
2021-06-07 21:42:44 +00:00
Rahul Garg 28f8d08148 SWDEV-288707 - Merge HIP refactored code to staging
These changes move-
- rocclr based implementation inside src/hipamd/src
- platform specific (both nvidia and amd) headers inside
src/hipamd/include/hip

Change-Id: Ia29791a727244952591fe1d813dcef0303b73a9e


[ROCm/clr commit: 260a1fed06]
2021-06-07 00:07:24 +00:00
Aaron En Ye Shi 2e6662b773 SWDEV-283266 - Fix hipRTC script bugs
Remove extra -isystem causing --cuda-device-only flag
to be dropped. Fix missing __hipRTC_header_size symbol.
Add macros which were consumed during pre-processor
generation. Add INT_MAX and CHAR_BIT macros used in
HIP headers.

Change-Id: Id5143e3c8a2b1e7c78658ba84d5ab3b55ac1fa72


[ROCm/clr commit: 7c8e210c26]
2021-06-04 13:58:32 -04:00
Vladislav Sytchenko 6b24f92d0f SWDEV-273235 - Initial support for Windows CMake
This change is tied to the ROCclr cmake rework. ROCclr will now be built
as part of HIP itself.

All the dependencies on comgr and rocr have been moved into ROCclr
itself. This allows HIP to pull in all the required compiler/runtime
dependencies by simply linking against ROCclr. Note that ROCclr needs to
be configured from HIP cmake command line. If not, we will default to
LC + ROCr support.

Since HIP depends on ROCclr and ROCclr depends on OpenCL, HIP will
transitevly pull in all the required OpenCL headers. No need to keep a
local copy of them anymore.

Change-Id: Ib39f4929e88da1248be962490c150b10fc7abd3a


[ROCm/clr commit: e34a7e8c0c]
2021-05-27 15:21:05 -04:00
Anusha GodavarthySurya c20cfdcdde SWDEV-288065 - allow hipcc to recognize .C files
Change-Id: I0ec884eb6e083e823cf27ca1251c354a7f3b744c


[ROCm/clr commit: ba28a01258]
2021-05-26 10:25:57 -07:00
Jatin Chaudhary 650d6031fa SWDEV-277697 - Make sure hipcc can handle standard CXX options when being used with nvcc
Change-Id: I76b1f2943a660eefda858397218a775083b99228


[ROCm/clr commit: bfc6eed3d5]
2021-05-25 07:35:02 -04:00
Aaron En Ye Shi 2fdac08d13 SWDEV-283266 - Fix hipRTC mcin missing symbol
Add back the .type directive needed for ELF
format to add the section to symbol table.
For COFF format the symbol is already added
to the symbol table.

Change-Id: I4920e8dae0af23b4dcabd324b47abc228fcab10f


[ROCm/clr commit: 561310c6d6]
2021-05-20 20:24:55 +00:00
cjatin 71ae783de1 SWDEV-285685 - Make sure the output of hipconfig is without quotes on linux
Change-Id: I620cd41c7e6087b0d3d7da9ef7f9cecaf2f740ba


[ROCm/clr commit: 82610fe3d5]
2021-05-17 20:50:36 +05:30
Aaron En Ye Shi 1099d6fb81 SWDEV-283266 - Add hiprtc option to generate preprocessor expansion
Add -r/--generate_rtc option to hip_embed_pch.sh to generate the
preprocessor expansion output of the HIP headers for hipRTC mode.
Generates an object hiprtc_header.o and shared library libhiprtc.so
which can be used for hipRTC online compilations. Enable
__HIP_ENABLE_RTC by default in the CMake files.

Change-Id: Ief51b695c9b31941d929e06f16872f95eea3619b


[ROCm/clr commit: 9c873353cc]
2021-05-14 10:20:38 -04:00
Jatin Chaudhary 60aa49e1d3 SWDEV-283959 - Make hipcc recognize -xc -xc++ -xhip options and add CXX flags when user mentiones filetype as -x hip
Change-Id: I737fba3db77eef21eb88ccf648b4134218249456


[ROCm/clr commit: 7941dedc45]
2021-04-30 04:58:07 -04:00
cjatin 383d919730 SWDEV-277903 - Add HIP_ROCCLR_HOME under HIP_PLATFORM==amd
Change-Id: I00e156eb0a51f505300e288af59a0cf39b606e26


[ROCm/clr commit: 4f0e8fc382]
2021-04-29 03:08:34 -04:00
Rahul Garg 9a4c6b4d73 SWDEV-280672 - Support HIP_PLATFORM=hcc in hipcc with warning
Change-Id: I6b199ea5ebed828a7f82c20d50fdf0fcfb887a64


[ROCm/clr commit: 78b926d48d]
2021-04-27 19:53:56 -04:00
Jatin Chaudhary a3df8ee846 SWDEV-278810 - Remove default addition of CXX Flags if file type is not recognized
Change-Id: I2b29f246d138b511d77f8e78f273795b4977313f


[ROCm/clr commit: 8e9e8f40e4]
2021-03-30 00:47:56 -04:00
kjayapra-amd 449cc5096e SWDEV-276169 - Multiprocess IPC tests for Events and Memory.
Change-Id: I4a7af60e732de234a535574aa8597a7abd0b899b


[ROCm/clr commit: 57615530a7]
2021-03-11 11:16:23 -05:00
Rahul Garg 596f761671 SWDEV-275204 - Bump version to 4.2
Change-Id: I0b3512591b56bd114d935c09014b44cd45547b9e


[ROCm/clr commit: 508f524204]
2021-03-03 23:42:21 -05:00
Sarbojit Sarkar dbdda43f31 SWDEV-274436 - Fixed square build issue
Change-Id: If64be13be48bb7e620172ec245bc819c923f918a


[ROCm/clr commit: 35265be757]
2021-03-03 11:46:11 -05:00
Tao Sang 2a6f45533d SWDEV-270973 - Add missing copyright headers
Change-Id: I6bb27650f74372dae6e29c79fd6bb2022cc062fe


[ROCm/clr commit: 4048db950c]
2021-03-01 19:46:24 -05:00
kjayapra-amd 9374c2bb93 SWDEV-274058 - Porting HIP, ROCclr gfx90a changes to mainline.
Change-Id: I02f53d4c7897d26243620cfc961fa9bd984cede4


[ROCm/clr commit: 20dd93a3be]
2021-02-24 09:55:43 -05:00
Rahul Garg 96c576eef4 SWDEV-270994 - Bump version to 4.1
Change-Id: Ibe3fcff157f9e0872852dc690ed5db8a8c248049


[ROCm/clr commit: 18bd7b0c13]
2021-02-19 01:59:39 -05:00
Julia Jiang 0e20fbfbec SWDEV-271416 - Remove HIP_DYNAMIC_SHARED macro in hip
Change-Id: I12f39ea8438eb7ce76d8ffb2151b4faa93689048


[ROCm/clr commit: e4fdbfcf5b]
2021-02-08 13:17:46 -05:00
Aaron En Ye Shi 0d3576fe7f SWDEV-263964 - Fix hipcc --hip-device-lib-path
On Windows, there may be spaces in the directory
location. Therefore, must add quotes when adding
this path with a location in C:/Program Files/.

Change-Id: I63642093092e25a2f6ed73b55a7afd16835ac736


[ROCm/clr commit: e4c1c79b2b]
2021-02-03 19:41:35 +00:00
Aaron En Ye Shi cdf02a8a0d SWDEV-263964 - Fix hipconfig to work on Windows
Modify hipconfig and hipcc to properly run Windows compiler
executables. Support Windows Environmental Variables and
AMD Display Adapter info. Update flags to include quotes for
paths that have spaces, such as Program Files.

Change-Id: Ib721b318bd88be7dfa1247a30ce78c7ed6a334e8


[ROCm/clr commit: 31e772adb5]
2021-01-25 12:53:03 -05:00
David Salinas b6ac0c8655 remove extractkernel
Change-Id: I46a380059fa336aa7553669629a21e8aa7717e7b


[ROCm/clr commit: de3031988d]
2021-01-15 11:34:32 -08:00
David Salinas 5eb35595fb add new code object tooling: roc-obj-ls and roc-obj-extract
SWDEV-229776

Change-Id: Icb11c4552515d3eff3bcf303c4a470ab90d1dd58


[ROCm/clr commit: 7e9b9534d3]
2021-01-14 14:45:46 -05:00
Tao Sang 52954de0eb Fix building mathlibs failure
Add back
__HIP_PLATFORM_HCC__
__HIP_PLATFORM_NVCC__

Change-Id: I1ae48678eafd849d6c25bcb204c1724b026be22f


[ROCm/clr commit: 8fc1ff7d4f]
2021-01-14 14:03:15 -05:00
Icarus Sparry e20326e563 Allow for /usr/bin/hipcc to be a symlink
SWDEV-267206

If /usr/bin/hipcc is a symlink then resolve it first, and then find
the resulting directory rather than resolving /usr/bin.

Change-Id: I380728ffa05ed813cc793a1d6488aaae81ddbda8


[ROCm/clr commit: 468929e539]
2021-01-11 00:50:20 -05:00
Tao Sang eeb275d643 Remove hip-hcc codes: Part four
Remove __HCC__, __HCC_ONLY__, __HCC_CPP__, __HCC_C__,
__HCC_OR_HIP_CLANG__, __HIP_ROCclr__ and their guarded codes.

Remove Hcc codes from directed_tests and samples.

Remove __HIP_PLATFORM_HCC__ and __HIP_PLATFORM_NVCC__ from
some files where they are not necessary.

Add deprecation notice.

Change-Id: I1ae467eafd749d6c25bca204c1724b026be21fce


[ROCm/clr commit: d504a761ad]
2021-01-08 10:53:34 -05:00
Tao Sang 2c1c9f78d6 Remove hip-hcc codes: Part three
1.Rename include/hip/hcc_detail/ as include/hip/amd_detail/

2.Rename include/hip/nvcc_detail/ as include/hip/nvidia_detail/

3.Create __HIP_PLATFORM_AMD__ to replace __HIP_PLATFORM_HCC__

4.Create __HIP_PLATFORM_NVIDIA__ to replace __HIP_PLATFORM_NVCC__

After hcc_detail, nvcc_detail, __HIP_PLATFORM_HCC__ and __HIP_PLATFORM_NVCC__
have been removed from upstream, they will be removed from hip runtime.

Change-Id: I1ae457effd739d6c25bca203c1724b026be21fce


[ROCm/clr commit: 8a2b0b7424]
2021-01-05 10:39:31 -05:00
agodavar 1da132c4b4 SWDEV-239065 Refactor hipcc, added new perl module hipvars
Change-Id: I2b71ceb2563501c7b2861cd0f2e23d01207b1bc2


[ROCm/clr commit: f3e350cd12]
2020-12-31 05:41:36 -05:00
agodavar 9de26a2274 SWDEV-265171 Remove hcc compiler support from hipcc
Change-Id: Ibd06e68dd1f079b2f9e46606bdbfc0a0a780b638


[ROCm/clr commit: e7c85da68b]
2020-12-30 06:26:09 -05:00
Tao Sang 6227f3fae2 Remove hip-hcc codes: Part one
Remove hip-hcc codes from hip code base
Simplify hip CMakeLists.txt to exclude hip-hcc
Simplify cmake cmd for hip-rocclr building
Some minor fixes

Change-Id: I1ae357ecfd638d6c25bca293c1724b026be21ecd


[ROCm/clr commit: 1cba7ec965]
2020-12-09 15:49:47 -05:00
Jatin Chaudhary 48f0f9f8ad Adding -Wl,@response_file and @response_file mechanism to hipcc
Change-Id: Ic2053a38034b9366cf82fc01b7ea6b52e0f17077


[ROCm/clr commit: 19e234b420]
2020-12-07 13:38:35 -05:00
Jatin Chaudhary c1aa765b33 Adding -x hip/c/none after each input file, this should allow compilations like 'hipcc a.cc b.o c.c'
Change-Id: If35571c0f8ff8bf51aebd793fc0c81c0e418ca5c


[ROCm/clr commit: d48c1d359a]
2020-11-19 02:04:33 -05:00
Yaxun (Sam) Liu 24d1c8c229 Fix embedding PCH
Change-Id: Ibaf043c9e331f15965185cd4195da98d9441cba3


[ROCm/clr commit: cdc7f3f49e]
2020-11-18 00:56:42 -05:00
agodavar 4bb6e01ea3 SWDEV-249870: Generate Pre-Compiled Headers from includes in source repo for Online Compilation
Change-Id: I663f510603e983927f80f7944df4d039ba7bc0b0


[ROCm/clr commit: 9ef681a618]
2020-11-12 10:50:33 -05:00
Konstantin Zhuravlyov 1b1b2998ad SWDEV-198415 - Implement Target ID Proposal
Changes from Jatin Chaudhary, Tony Tye

Change-Id: I14904920ad2356ae2098cf827b83613089d33962


[ROCm/clr commit: 73fb01cb3a]
2020-11-10 13:31:43 -05:00
agodavar 9132d92ccd cmake hip-rocclr as default build,change HIP_PLATFORM to amd|nvidia
Change-Id: I59d2e15b297b6ca2d5eee1a6dee642bdb01a3839


[ROCm/clr commit: 8717a78bf7]
2020-10-21 07:26:14 -04:00
Rahul Garg 8605c53e75 Bump version to 4.0
Change-Id: Ia8c3b21ccd58f07c95aa3030bc787144f934f80e


[ROCm/clr commit: 3979d063a1]
2020-10-19 21:00:13 -04:00