Commit Graph

146 Commits

Author SHA1 Message Date
Yaxun Sam Liu f2e2eb68e7 Let hip-clang support --genco
[ROCm/clr commit: 988dcd1e4a]
2018-11-27 15:55:50 -05:00
Evgeny efbb57c5af FATAL_ERRROR if Profiling API header not found
[ROCm/clr commit: c37c1288db]
2018-11-22 21:51:20 -06:00
Evgeny dc1dd2c52f fixing the adding of USE_PROF_API define only if the tracer header was found
[ROCm/clr commit: 37dcb91eef]
2018-11-22 21:12:08 -06:00
Evgeny 7519b3f75e adding activity prof layer
[ROCm/clr commit: 084a68be63]
2018-11-13 15:33:26 +00:00
Aaron Enye Shi 1c05b06bcd Remove libhip_device.a static library
Move remaining function definitions from device_util.cpp to hip_runtime.h header. We can now remove the static library completely as device_util.cpp was the last file part of target hip::hip_device .


[ROCm/clr commit: ba43d1ce1b]
2018-10-25 19:52:35 +00:00
Aaron Enye Shi ee366fad74 Create separate config files for hcc and clang
The state of HIP_COMPILER is not passing into config files, therefore config files cannot use if statements to determine dependency. For HIP-Clang, we should remove find_dependency(hcc), so we create separate config files depending on compiler path. This fixes issue in apps that uses hip-config.cmake.


[ROCm/clr commit: 73a5ea0f9f]
2018-09-19 18:29:56 +00:00
Aaron Enye Shi ce3a13cb4f Remove few hcc specific cmake for hip-clang
[ROCm/clr commit: 6e40ec653c]
2018-08-15 21:53:20 +00:00
Aaron Enye Shi da60937c5d Enable HIP_COMPILER to choose HIP-Clang lib links
[ROCm/clr commit: 7560956233]
2018-08-01 20:37:46 +00:00
Aaron Enye Shi eab9cacef2 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/clr commit: d39508b4fd]
2018-07-05 20:38:46 +00:00
Aaron Enye Shi d09a2f9237 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/clr commit: 175c87f2bf]
2018-06-20 17:39:31 +00:00
Aaron Enye Shi 7f2693010b 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/clr commit: ad5f1dcbf2]
2018-06-20 17:39:23 +00:00
Alex Voicu 130e9d409e Re-sync with upstream.
[ROCm/clr commit: f2d7f112ab]
2018-06-01 15:49:05 +01:00
Alex Voicu a9cabfc8df Re-sync with upstream. Add integer abs.
[ROCm/clr commit: e03ca1a72e]
2018-05-31 16:38:00 +01:00
Alex Voicu 2924783ee4 Switch to using ROCDL directly, as opposed to via HC. Add missing bits.
[ROCm/clr commit: 14e6a04387]
2018-05-31 03:17:26 +01:00
Alex Voicu a231cd5604 Remove vestigial inline LLVMIR.
[ROCm/clr commit: f2a86f3e1c]
2018-05-24 12:46:14 +01:00
Alex Voicu 2b16b4e31b Missing commit.
[ROCm/clr commit: ecefdd6541]
2018-05-23 17:57:47 +01:00
Maneesh Gupta 40776838cd Merge pull request #418 from pfultz2/host-device-targets
Add host and device targets

[ROCm/clr commit: 197cac144d]
2018-05-22 06:33:56 +05:30
Siu Chi Chan 04bf6c5109 initial gfx906 support
[ROCm/clr commit: 368affcea4]
2018-05-10 19:28:00 +00:00
Paul e4b8bec66d Add host and device targets
[ROCm/clr commit: 56734306ed]
2018-04-24 14:04:24 -05:00
Aaron Enye Shi 1966257b5a Remove unsupported targets gfx801 and gfx802
These architectures are no longer supported. Should not compile for them.

[ROCm/clr commit: 1149f88413]
2018-04-23 15:25:35 -04:00
Maneesh Gupta 64780b64bf [cmake] Update target build dependencies
Change-Id: Ib1c34135c0d04f88daa695e7a90272225d7e64b0


[ROCm/clr commit: ebc52e5bc0]
2018-04-11 15:30:13 +05:30
Laurent Morichetti f22fbe4271 Add support for clang offload bundles and <<<>>> kernel launch.
[ROCm/clr commit: 323caee8d2]
2018-04-04 13:32:33 -07:00
Maneesh Gupta ecbb701440 Merge pull request #363 from gargrahul/surface_object_api
Added surface object support

[ROCm/clr commit: eee7fa6072]
2018-03-09 11:50:30 +05:30
Alex Voicu 7f8411f93f Update CMakeLists.txt
[ROCm/clr commit: fa0bff8f78]
2018-03-01 16:06:09 +00:00
Rahul Garg 7272f1608c Added surface object support
[ROCm/clr commit: 92283d24d0]
2018-02-26 11:59:03 +05:30
Alex Voicu c4d704b2ad Change directory name to match HIP lowercase style.
[ROCm/clr commit: 696f0595a3]
2018-02-22 13:15:10 +00:00
Alex Voicu 4e8e090839 Merge branch 'master' of https://github.com/ROCm-Developer-Tools/HIP into feature_purge_genco
[ROCm/clr commit: 1563d53c92]
2018-02-22 12:08:52 +00:00
Maneesh Gupta f06408fa54 [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/clr commit: 6ef0c494d1]
2018-02-12 10:21:27 +05:30
Alex Voicu 392dd28899 Merge branch 'master' of https://github.com/ROCm-Developer-Tools/HIP into feature_purge_genco
[ROCm/clr commit: 09c704a2d0]
2018-01-17 14:02:19 +00:00
Alex Voicu fa674a10cc 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/clr commit: 863f08c6a6]
2017-12-14 13:32:27 +00:00
Maneesh Gupta b75f3d6449 [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/clr commit: 379cbfedcf]
2017-12-14 12:16:44 +05:30
Alex Voicu b59b227151 Add omitted changes in CMakeLists.txt.
[ROCm/clr commit: bdd2d6d602]
2017-11-10 01:20:50 +00:00
Chris Kitching 8f59de9d2b 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/clr commit: de8dcf0ed2]
2017-10-27 19:39:40 +01:00
Chris Kitching 39b280d948 Use add_dependencies to avoid duplication of pkg_hip_base
[ROCm/clr commit: 414a473d5c]
2017-10-27 19:39:40 +01:00
Chris Kitching e7ae31f2ac 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/clr commit: 497a776f6c]
2017-10-27 19:39:39 +01:00
Ben Sander a5b3f825c2 Merge pull request #100 from weixingzhang/texture
HIP Texture Support

[ROCm/clr commit: 702651fc85]
2017-07-26 19:28:15 -05:00
Maneesh Gupta 013f6cd0cc [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/clr commit: 1b5d19ff36]
2017-07-26 13:51:32 +05:30
Weixing Zhang d9abb032f7 HIP Texture Support
[ROCm/clr commit: ccbd3b13fc]
2017-07-17 15:16:12 -04:00
Ben Sander 57733404c1 Add hipdbPrintMem - wrapper for hcc memory tracker.
[ROCm/clr commit: 18660be8ce]
2017-07-03 15:05:30 -05:00
Maneesh Gupta 0d555fa3f4 [build] link libCXActivityLogger.so when COMPILE_HIP_ATP_MARKER=1
Change-Id: I0bfffd924cd858bec7436acf3ccb1e3375172f27


[ROCm/clr commit: bb928ee8ec]
2017-06-28 10:26:04 +05:30
Maneesh Gupta 2235d9014e Do not rebuild cmake cache by default
Change-Id: Ie21e99beaa3465b54b5a6a77439c455f34de98b3


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


[ROCm/clr commit: 6db8c7c69e]
2017-04-13 12:12:04 +05:30
Sun, Peng f202567d83 Disable LLVM related config in CMakeLists.txt
Change-Id: I02e52264219d68c1ae8ea37c8df166a0edf9f7cd


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


[ROCm/clr commit: df4cee1a57]
2017-04-01 14:50:39 -05:00
Aditya Atluri c3f1a37c28 Re-enabled metadata parsing in HIP
Change-Id: If8caa844571cb8581450df9ffdb76e2445c75f13


[ROCm/clr commit: abf369049b]
2017-03-27 11:00:39 -05:00
Maneesh Gupta 28427bdbea Revert "Mark hcc_LIBRARIES as PRIVATE"
This reverts commit a47a674e37.


[ROCm/clr commit: 84cb55da9b]
2017-03-23 22:02:52 +05:30
Aditya Atluri 478eb4e350 removed llvm dependency and metadata functionality
Change-Id: Ib9783b75d326559ed29c5aa2218aed40d20ad0fb


[ROCm/clr commit: 5a0685c137]
2017-03-23 10:16:37 -05:00
Maneesh Gupta a47a674e37 Mark hcc_LIBRARIES as PRIVATE
Change-Id: Ia0f8f12148b69c9de78378d117e3561ce20cd827


[ROCm/clr commit: 89623f748d]
2017-03-23 16:25:53 +05:30
Aditya Atluri fa70da22ed fixed paths to find llvm
Change-Id: I0a4af8cea2f44fea011d09fc300e382984746d17


[ROCm/clr commit: a19bce16e4]
2017-03-21 14:22:49 -05:00
Aditya Atluri b4b87b8786 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/clr commit: 9645b0e0dc]
2017-03-17 13:11:34 -05:00