Adding hip-config.cmake variables HIP_CLANG_REPO,
HIP_CLANG_BRANCH, and HIP_CLANG_PATCH_LEVEL. These
are extracted from either hipcc or clang++ --version
output.
Change-Id: I5386b71160d592d95d1867e0b563e91514b1b84b
[ROCm/hip commit: abebb6fe21]
Should not add extra for non-parameter dummyKernel()
in hipModuleLaunchKernel()
Change-Id: If6f881ebb027bd3e8435d3de5295b00277e96a6a
[ROCm/hip commit: 87ba31e596]
This reverts commit 64e6f51efc.
Reason for revert: Need to rework this to support older cmake releases as well.
Change-Id: I95dd2311c0166656099229128ed5344eb761942e
[ROCm/hip commit: b01fb5d72f]
Disable sincos() for NV temporarily in order
to prevent kernel launch failure for NVA100.
Change-Id: Ic9ec976c5c486c4e1d3b83e1578081673f97efa3
[ROCm/hip commit: fd50af8c77]
To allow committing a patch into compute/ec/hipamd,
temporarily remove this library from package, and add
back in cmake hiprtc-builtins patch.
Change-Id: I8e448a669e796d4c321fcf8a6fe2dc5773743de3
[ROCm/hip commit: ff97848c63]
Corrects an invalid call to 'ar', which results in link failures for mixed shared
and static link invocations using hipcc.
Change-Id: I51c33438106af066a13e5ff9533721cdc326790d
[ROCm/hip commit: 6d20ee19c7]
This reverts commit 261b237f17.
Reason for revert: Reverting this change to enable split project flow working. Once that is enabled this change will be submitted in hipamd project.
Change-Id: Iad2e044a173787a57a80c5a3d04795e7c2dc5ad5
[ROCm/hip commit: 93b53dc6fa]
Current packaging assumes that HIP runtime will always be installed in
/opt/rocm/lib. This is false to assume, because some distros like CentOS
will use the lib64 directory instead of lib. Relying on CMake to choose
the library directory for us will default in that case to lib64. Hence
there will be a mismatch between where HIP is installed and where CMake
thinks it is.
Change-Id: If6f881eab027bdbe8435d3de5295b00277e96a6a
[ROCm/hip commit: ed9e4ee7df]
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/hip commit: b982637965]
CMake doesn't handle linker export files in a general way well. On
Windows it is able to recognize a .def file and pass it to the linker.
Unfortunately it cannot do the same thing on Linux, so we have to
manually specify it.
Note that CMake can't recognize the current Windows export file due to
the .in suffix, hence why the amdhip.def file is being added. The
hip_hcc.def.in file will be removed later, as the Makefile build still
uses it.
Change-Id: Id3e4645c95959e13f50efd88bc43f3a1d3e50d58
[ROCm/hip commit: 118714d1b6]
Add coarse grain memory extension. The new advice will allow HMM
to disable cache coherency policy to improve performance
Change-Id: I3c792d6a96896b983a7ffccddaa0ded06d183212
[ROCm/hip commit: c80955b569]
HIP exports the runtime target as amdhip64. This target was recently
renamed to amdhip. It is unclear as to who uses this target, as HIP
clients need to use the device/host targets instead, but we still need
to support it for backwards compatability.
Change-Id: I68b9798ab967420e0642d50621d3c8b577a05435
[ROCm/hip commit: 00dc7068fc]
HIP only has a dependency on ROCclr at build time. When exporting HIP,
ROCClr is already embedded into the shared/static library. There is no
reason to search for it.
Change-Id: I8d7e8e58164e5585a1dfc9c998ecf02ca42d8aac
[ROCm/hip commit: b7c59cda76]
Don't install HIP source code.
Correctly install the HIP shared library based on platform. On Linux,
it will be installed to lib/, but on Windows it will be installed to
bin/. CMake will handle this for us.
Change-Id: I00cc074ad8e13b1b953b21444f0c2b5f50dc03c0
[ROCm/hip commit: 444d54df12]
Add kernelVerify for data verification and memory
reading performance checking in kernel.
Change-Id: Id3f9bcad75d643f493daf9d5f47b3a012a427179
[ROCm/hip commit: 9ba66fc157]
Test is modified as hipMemAttachHost is accepted now by hipMallocManaged
Change-Id: If73d210297cde7a92960eef57a902dbd6402a173
[ROCm/hip commit: da9564e302]
HIP should block the stream until callback is done. This change
will introduce extra marker that will block the queue.
Note: MT path doesn't really require extra marker, but the logic
is identical to avoid extra checks for direct dispatch
Change-Id: Ib90fd2d751adf337f5e43ac6098e84767530233b
[ROCm/hip commit: e43696d7ca]
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/hip commit: 30f1fcaf53]