Graf Tiomantas

138 Tiomáintí

Údar SHA1 Teachtaireacht Dáta
Aaron Enye Shi 17453a6278 Implement hip_ldg Functions into HIP header
Move all the function definitions for hip_ldg.cpp into hip_ldg.h header and enable for HIP clang path.


[ROCm/hip commit: 76f86ef097]
2018-07-05 20:38:46 +00:00
Aaron Enye Shi 2a2f34b42d Implement hip_hc.ll into HIP headers
Move all __hip_hc_ir_* functions from hip_hc.ll into HIP header as inline asm. Remove hip_hc.ll and build dependencies from HIP.


[ROCm/hip commit: 2142eb4d12]
2018-06-20 17:39:31 +00:00
Aaron Enye Shi 0fca41a7ce Implement device_functions.cpp into HIP headers
Move all Integer Intrinsics, device_functions.cpp definitions and HIP specific device functions into HIP headers. Implement the device functions using llvm_intrinsics and device-libs functions instead of calling hc::__* functions. Remove device_functions.cpp since everything is now defined in header.


[ROCm/hip commit: e02fc7e680]
2018-06-20 17:39:23 +00:00
Alex Voicu b9bf931765 Re-sync with upstream.
[ROCm/hip commit: 417869821d]
2018-06-01 15:49:05 +01:00
Alex Voicu 63c8aa6fcb Re-sync with upstream. Add integer abs.
[ROCm/hip commit: ab4b2a650b]
2018-05-31 16:38:00 +01:00
Alex Voicu 1d220f8867 Switch to using ROCDL directly, as opposed to via HC. Add missing bits.
[ROCm/hip commit: 59db16fd36]
2018-05-31 03:17:26 +01:00
Alex Voicu a7da1ccf2e Remove vestigial inline LLVMIR.
[ROCm/hip commit: 9c7fbdb597]
2018-05-24 12:46:14 +01:00
Alex Voicu 4ceb9cbc09 Missing commit.
[ROCm/hip commit: 6f819f226b]
2018-05-23 17:57:47 +01:00
Maneesh Gupta b1dd11ca65 Merge pull request #418 from pfultz2/host-device-targets
Add host and device targets

[ROCm/hip commit: 2cb59db654]
2018-05-22 06:33:56 +05:30
Siu Chi Chan c05e2e2261 initial gfx906 support
[ROCm/hip commit: b898049412]
2018-05-10 19:28:00 +00:00
Paul 8643ed5ca9 Add host and device targets
[ROCm/hip commit: 516d92f4d7]
2018-04-24 14:04:24 -05:00
Aaron Enye Shi 583942c3cb Remove unsupported targets gfx801 and gfx802
These architectures are no longer supported. Should not compile for them.

[ROCm/hip commit: 433866eb60]
2018-04-23 15:25:35 -04:00
Maneesh Gupta 01e4cf1c68 [cmake] Update target build dependencies
Change-Id: Ib1c34135c0d04f88daa695e7a90272225d7e64b0


[ROCm/hip commit: b1be325745]
2018-04-11 15:30:13 +05:30
Laurent Morichetti 9e1d2064c9 Add support for clang offload bundles and <<<>>> kernel launch.
[ROCm/hip commit: 0c1893ea62]
2018-04-04 13:32:33 -07:00
Maneesh Gupta 52506ef382 Merge pull request #363 from gargrahul/surface_object_api
Added surface object support

[ROCm/hip commit: 18e70b1e6b]
2018-03-09 11:50:30 +05:30
Alex Voicu fff7409a48 Update CMakeLists.txt
[ROCm/hip commit: 75840b4b00]
2018-03-01 16:06:09 +00:00
Rahul Garg ff74aadd87 Added surface object support
[ROCm/hip commit: 5c3b91a0a1]
2018-02-26 11:59:03 +05:30
Alex Voicu 717a01660a Change directory name to match HIP lowercase style.
[ROCm/hip commit: dc7560ef22]
2018-02-22 13:15:10 +00:00
Alex Voicu 7f9c1eab10 Merge branch 'master' of https://github.com/ROCm-Developer-Tools/HIP into feature_purge_genco
[ROCm/hip commit: 49ef24c042]
2018-02-22 12:08:52 +00:00
Maneesh Gupta 00aeb8514f [build] Add clangformat target to cmake
- Added a new target "clangformat" which formats the code using the
  clang-format tool found in HCC package.
- Renamed target "static_check" to "cppcheck".
- Use find_program() macro to make the build system more robust.

Change-Id: Ifefbf36f23ff7ef27a870120d5b9170d0cc8aa52


[ROCm/hip commit: 1e559d19c3]
2018-02-12 10:21:27 +05:30
Alex Voicu abb22cc7f2 Merge branch 'master' of https://github.com/ROCm-Developer-Tools/HIP into feature_purge_genco
[ROCm/hip commit: ed75522ba5]
2018-01-17 14:02:19 +00:00
Alex Voicu 4016b8e984 Add Catecholamine (CA), a tool for breaking code objects out of fat binaries created via LPL. As with LPL, --help provides usage details. Fixed LPL's implementation of path_to_self which was a nasty infinite loop iff for whatever reason readlink would always fail, orthogonally to the string's size. Link against pthread for LPL, which uses call_once and once_flag (this could, under certain circumstances, yield an arcane "Unknown error=-1" exception.
[ROCm/hip commit: 5a4955617e]
2017-12-14 13:32:27 +00:00
Maneesh Gupta fc047fada9 [cmake] Added target static_check for static code analysis
- Added static code analysis using cppcheck
- Fixed couple of warnings reported by cppcheck

Change-Id: Ie3b9b06e95ada322e7dc2ce3d6b91831e870198d


[ROCm/hip commit: 7930c03e42]
2017-12-14 12:16:44 +05:30
Alex Voicu aa34be6834 Add omitted changes in CMakeLists.txt.
[ROCm/hip commit: 819e72fba6]
2017-11-10 01:20:50 +00:00
Chris Kitching fd656a0fbb Use cmake's builtin mechanism for handling library locations
See [the documentation](https://cmake.org/cmake/help/v3.0/command/find_package.html)
for exactly how the search procedure works. If you want to use an
LLVM from a specific location, use CMAKE_PREFIX_PATH as normal.

No longer do we have a nonstandard HIPIFY_CLANG_LLVM_DIR variable
for people to learn about.


[ROCm/hip commit: 8fefc6a2b7]
2017-10-27 19:39:40 +01:00
Chris Kitching b61c4a241f Use add_dependencies to avoid duplication of pkg_hip_base
[ROCm/hip commit: 56b4222043]
2017-10-27 19:39:40 +01:00
Chris Kitching 7947e406c7 Make BUILD_HIPIFY_CLANG a cmake option
Instead of deciding whether to build hipify-clang based on
the presence of an LLVM path on the command line, have an
explicit option.

Do we want this default-on or default-off? I've defaulted it to
on for now, but maybe we want the opposite?


[ROCm/hip commit: a4ecd4eb31]
2017-10-27 19:39:39 +01:00
Ben Sander 9ec4b0b66f Merge pull request #100 from weixingzhang/texture
HIP Texture Support

[ROCm/hip commit: 4f93b99f23]
2017-07-26 19:28:15 -05:00
Maneesh Gupta 0c211125c4 [cmake] No longer rebuild cmake cache on each build
Cmake cache was being rebuilt on each build. This was being done
to update HIP_VERSION, HCC_VERSION, .hipInfo and .hipVersion.
However, rebuilding cache also re-runs HIT parser which is slow.
Removing the cache rebuild should speed up the build. But user
needs to explicitly rebuild the cache in case HIP_VERSION or
HCC_VERSION changes by calling "make rebuild_cache"

Change-Id: Ia5476eb7105aa614239c4dc7968c37f5e6cb0b29


[ROCm/hip commit: e63c8494fd]
2017-07-26 13:51:32 +05:30
Weixing Zhang 65bec11393 HIP Texture Support
[ROCm/hip commit: e671cec367]
2017-07-17 15:16:12 -04:00
Ben Sander 042ed2c38f Add hipdbPrintMem - wrapper for hcc memory tracker.
[ROCm/hip commit: 0459f3db72]
2017-07-03 15:05:30 -05:00
Maneesh Gupta 4c584c82f1 [build] link libCXActivityLogger.so when COMPILE_HIP_ATP_MARKER=1
Change-Id: I0bfffd924cd858bec7436acf3ccb1e3375172f27


[ROCm/hip commit: f41b77e247]
2017-06-28 10:26:04 +05:30
Maneesh Gupta 8c52b6a748 Do not rebuild cmake cache by default
Change-Id: Ie21e99beaa3465b54b5a6a77439c455f34de98b3


[ROCm/hip commit: bfa08cd49a]
2017-04-13 12:38:38 +05:30
Maneesh Gupta 3e1d2dde23 dtests should ignore HIP_PATH env var
Change-Id: I27b1cdab6e6b799987dad3ce97b56c764b1b8867


[ROCm/hip commit: 83097e9da4]
2017-04-13 12:12:04 +05:30
Sun, Peng b39b214a98 Disable LLVM related config in CMakeLists.txt
Change-Id: I02e52264219d68c1ae8ea37c8df166a0edf9f7cd


[ROCm/hip commit: 608bd58a31]
2017-04-01 15:01:00 -05:00
Sun, Peng 7559427041 GGL update, fix for thread-safe access to streams (accelerator_views).
Change-Id: I6dd329a85b3ba7de23d52823febee0c53857a981


[ROCm/hip commit: b1ed910942]
2017-04-01 14:50:39 -05:00
Aditya Atluri 3623535fdf Re-enabled metadata parsing in HIP
Change-Id: If8caa844571cb8581450df9ffdb76e2445c75f13


[ROCm/hip commit: 7d49dcc030]
2017-03-27 11:00:39 -05:00
Maneesh Gupta 0e3798ded4 Revert "Mark hcc_LIBRARIES as PRIVATE"
This reverts commit 5d5651771f.


[ROCm/hip commit: cc433014ec]
2017-03-23 22:02:52 +05:30
Aditya Atluri e60749f3f0 removed llvm dependency and metadata functionality
Change-Id: Ib9783b75d326559ed29c5aa2218aed40d20ad0fb


[ROCm/hip commit: 4f4a44c736]
2017-03-23 10:16:37 -05:00
Maneesh Gupta 5d5651771f Mark hcc_LIBRARIES as PRIVATE
Change-Id: Ia0f8f12148b69c9de78378d117e3561ce20cd827


[ROCm/hip commit: f1d4756f6c]
2017-03-23 16:25:53 +05:30
Aditya Atluri b5e95a834e fixed paths to find llvm
Change-Id: I0a4af8cea2f44fea011d09fc300e382984746d17


[ROCm/hip commit: 9d7bfbc14b]
2017-03-21 14:22:49 -05:00
Aditya Atluri 95c7942f5c Added default module launch api functionality
1. As in hipModuleLaunchKernel(..., kernelParams, nullptr); works with this commit
    2. Added headers AMDGPUPTNote.h, AMDGPURuntimeMetadata.h to do code object meta data parsing
    3. Changed CMake to look at llvm link libraries
    4. HIP developer should set env variable LLVM_HOME to remove link errors
    5. HIP depends on installed LLVM (not source, not build)
    6. Added sample to test out the feature
    7. Right now HCC does not support embedding metadata in code object. Use clang opencl
    8. Changed HIPCC to read LLVM_HOME env var
    9. New argument to CMake should be given -DLLVM_HOME=<where llvm 5.0 is installed>

Change-Id: Iba38194aa872d97cc2c90a8e5ff746c48055c868


[ROCm/hip commit: 99432cc12c]
2017-03-17 13:11:34 -05:00
Maneesh Gupta 4a21f2f768 Add gfx900 support
Change-Id: I3be2fbdcb6d3fa776c4fe668586c67245a1323f2


[ROCm/hip commit: db1bd201cd]
2017-03-14 13:51:38 +05:30
Rahul Garg 6e13b64b35 Removed hsakmt headers
Change-Id: I4ffc95d5823489195ebc5638226b49ea2995f603


[ROCm/hip commit: c8e985f83c]
2017-03-06 22:37:05 +05:30
Siu Chi Chan 7d91578dcd fix hcc version string extraction
Change-Id: Ie209b6deae55c779a577aaccb1bc21f969f69e14


[ROCm/hip commit: c3126bab8a]
2017-03-06 15:33:43 +05:30
Maneesh Gupta 6d72290788 CMakeLists: Create test targets only if HIP install location is writable
Change-Id: I79f28884b0f117f2824ca8877c25b586bce62e5b


[ROCm/hip commit: aca015c47d]
2017-03-06 15:32:21 +05:30
Maneesh Gupta dd6f21070a directed tests no longer run in an subdirectory
- target "make test" will no longer build and run tests. It will only run the tests.
- added new target "make check" which will build and run the tests.
- target "make check" will build tests serially. Use -j<N> to build tests in parallel.

Change-Id: I24c7932bf9798364a59f44631fbabcf9a5da5e17


[ROCm/hip commit: 5f689cb986]
2017-02-27 13:14:08 +05:30
Maneesh Gupta e5682bd659 Fix export interfaces in hip-config.cmake
Change-Id: Ifad4661ab17d7e6edb6ab300f1e92552ed917950


[ROCm/hip commit: 270054859a]
2017-02-23 11:18:06 +05:30
Siu Chi Chan 3cd2b00059 Squashed commit of the following:
commit 931d3de6c1c903cfd47842bc5026a9294ac492b4
Author: Siu Chi Chan <siuchi.chan@amd.com>
Date:   Mon Feb 13 10:54:06 2017 -0500

    only force to libstdc++ if the g++ is older than version 5 since hcc already defaults to libstdc++ with newer g++

commit 1ef8d71aa788de7b9eead4906fe56186f06d7d3f
Author: scchan <siuchi.chan@amd.com>
Date:   Sun Feb 12 14:44:11 2017 -0500

    remove hardcoded -lc++ in tests

commit 5d99ef338eb3a66523cc9ddd139e86c6fd707b9c
Author: scchan <siuchi.chan@amd.com>
Date:   Sun Feb 12 14:35:46 2017 -0500

    force include libstdc++ headers and stdc++ only if g++ version < 5 since hcc uses libstdc++ by default if g++ > 5 is present

commit a2bc21b24d100feefe91cd3cb2271238bda0738a
Author: scchan <siuchi.chan@amd.com>
Date:   Fri Feb 10 04:36:27 2017 -0500

    use hcc-config to generate compiler and linker flags

Change-Id: I13a79629c0adfd75439a47d0488ff4fd619c55ba
(cherry picked from commit 866e744e40cf1378af8a679b54959bf5226c340f)


[ROCm/hip commit: 806deeb476]
2017-02-16 13:12:32 +05:30
Maneesh Gupta 9f5ab73c4e Generate package config for cmake
Change-Id: I73a0b21361bbe29e095dc515bdc70588ec722d57


[ROCm/hip commit: db36676f5d]
2017-02-13 16:01:50 +05:30