Commit Graph

150 Commits

Author SHA1 Message Date
Maneesh Gupta 874af1bf7d Merge pull request #539 from ROCm-Developer-Tools/fix-tf-link
Add workaround to hipcc for build failure in tensorflow due to missin…
2018-07-04 11:08:52 +05:30
Maneesh Gupta 3b157546f9 Merge pull request #517 from ROCm-Developer-Tools/fix-hipcc-link
Let hipcc handle static library for hip-clang only if it contains bun…
2018-07-04 10:51:44 +05:30
Yaxun (Sam) Liu 632baba353 Add workaround to hipcc for build failure in tensorflow due to missing symbol __cpu_model
https://github.com/tensorflow/tensorflow/issues/9593
2018-06-25 18:14:51 -04:00
Aaron Enye Shi dc850cc3e7 HIPCC - Use clang if clang++ is not compiled 2018-06-21 18:12:55 +00:00
Yaxun (Sam) Liu 454d45e5bb Let hipcc handle library with extension lo for hip-clang 2018-06-19 10:51:08 -04:00
Yaxun (Sam) Liu fd03c8fc18 Fix handling of static library in hipcc for hip-clang 2018-06-17 20:11:10 -04:00
Yaxun (Sam) Liu d442a57002 Let hipcc handle static library for hip-clang only if it contains bundles 2018-06-17 20:11:10 -04:00
Yaxun (Sam) Liu 8d3e4b4475 Let hipcc handle library in linker response file for hip-clang 2018-06-08 11:14:26 -04:00
Maneesh Gupta 8ecb3eeb55 Merge pull request #466 from ROCm-Developer-Tools/feature_use_Float16
Feature use _Float16 and match CUDA __half behaviour.
2018-06-01 13:50:12 +05:30
Yaxun (Sam) Liu 3609e6f3b2 Drop --amdgpu-target= options for hip-clang
They are replaced by --cuda-gpu-arch= options elsewhere
2018-05-30 06:47:44 -04:00
Yaxun (Sam) Liu 9c43970a27 Add more function declarations to hip-clang 2018-05-25 16:18:46 -04:00
Alex Voicu f2a86f3e1c Remove vestigial inline LLVMIR. 2018-05-24 12:46:14 +01:00
Maneesh Gupta 43ac6a61e7 Merge pull request #454 from ROCm-Developer-Tools/hip-clang-hipcc
Let hipcc suport hip-clang
2018-05-21 09:51:42 +05:30
Yaxun (Sam) Liu 55f01cbf36 Let hipcc suport hip-clang 2018-05-17 14:40:15 -04:00
Siu Chi Chan 368affcea4 initial gfx906 support 2018-05-10 19:28:00 +00:00
Siu Chi Chan 0501f6c582 On RHEL and CentOS, don't use libc++ since we are using the devtoolset-7 which has a newer g++ 2018-03-15 16:46:01 -04:00
Alex Voicu 696f0595a3 Change directory name to match HIP lowercase style. 2018-02-22 13:15:10 +00:00
Alex Voicu 4d0d4dc701 Merge branch 'master' of https://github.com/ROCm-Developer-Tools/HIP into feature_purge_genco 2017-12-14 13:50:49 +00:00
Phaneendr-kumar Lanka 7a3e0bc5d0 [nvccWarnings] Fix gpu deprecated targets warnings 2017-12-12 16:00:14 +05:30
Alex Voicu 4e0739c68a This introduces LipoProteinLipase (lpl), a simple tool for creating fat binaries. It represents a direct replacement of the creaky hccgenco.sh script, which had various issues. The format it uses is that of a code object bundle, generated by the Clang Offload Bundler. The output is always suffixed with the ".adipose" extension. It is shared with HCC. The hipcc script and associated tests are modified to use lpl. Help can be obtained by invoking lpl --help. A more computer-sciency / corporate friendly name is likely to be beneficial, which is a reason for choosing easily searchable/replaceable names such as lpl or adipose. 2017-12-08 04:22:57 +00:00
Rahul Garg 20947f80fb Fixed half2 issue on gfx900 2017-11-15 18:52:59 +05:30
Maneesh Gupta 473208368e Remove libsupc++ dependency from HIP
Change-Id: Ib843f99dfb3057b7c28029250c2449732ea7f17f
2017-11-02 12:29:09 +05:30
Siu Chi Chan cb454d5366 use libc++ on centos 7 and rhel 7.4 2017-10-31 18:14:07 +00:00
Aaron Enye Shi de8c59ed00 hcc-config already sets -lc++ -lc++abi flags
Since hcc-config will set the flags for CentOS7 and RHEL 7.X, we don't need to set flags here.
2017-09-14 10:55:38 -04:00
Aaron Enye Shi bfff9bf005 Added support for RHEL 7.4 2017-09-13 14:21:43 -04:00
Aaron Enye Shi 4f7972b0ee Update hipcc 2017-09-12 17:50:44 -04:00
Aaron Enye Shi f7a2c019c6 Must explicitly add libc++ and libc++abi 2017-09-12 16:59:43 -04:00
Aaron Enye Shi 728f1f4c95 [CentOS7] Fix HIP sample hipInfo and other tests
Cent OS 7 has conflicts between its libc++ and libstdc++. Seems that we cannot use libstdc++ on Cent OS. This is related to SWDEV-131972 [ROCm CQE][Cent OS 7][G] Building any HIP sample giving an fatal error: 'bits/c++config.h'.
2017-09-08 11:46:10 -04:00
Maneesh Gupta 8f6c150134 [hipcc] Fix amdgpu target selection logic
- Refactoring introduced a bug when user does not specify any target via
--amdgpu-target, but has an invalid target specified in
HCC_AMDGPU_TARGET. In this case the selection logic was defaulting to
gf803.
- Removed defaulting to any specific target if rocm_agent_enumerator
  fails. hipcc will report this and die if linking was required.

Change-Id: I76131867049fef92331807dd19a926406dcc1d02
2017-07-31 10:11:19 +05:30
Maneesh Gupta 2a2c7575eb [hipcc] Cleanup amdgpu target logic
Existing logic has a bug. If user specifies targetA via commandline
options, while enumerator returns targetB, hipcc will create a fatbin
containing targets targetA and targetB. enumerator should only be used
when no target is specified by user (commandline or env var).

Change-Id: I6da857f86860c0e671b5988cd858644a08f723b9
2017-07-28 16:18:15 +05:30
Aditya Atluri b10962a539 fixed device selection during compilation to use rocm_agent_enumerator
1. Changed hipcc to use rocm_agent_enumerator
2. Changed square sample test to use device variable
2017-07-21 15:50:12 -05:00
Sun, Peng c6dee2a266 fix typo in hipcc
Change-Id: I5f5fb3d8f1e5e8104dca45dc213c13ae9d98a583
2017-07-01 09:43:31 -05:00
Maneesh Gupta 3df134971b Force stdlib=libc++ on UB14.04
Change-Id: I7f24d663e57fbbee56afde12a0e61fc8bfc1e9b6
2017-04-03 15:09:31 +05:30
Aditya Atluri 4e5861df7a disabled metadata apis
Change-Id: Ifb8839c581644cccc2afcd18c38a866f649a4144
2017-03-28 10:46:31 -05:00
Aditya Atluri abf369049b Re-enabled metadata parsing in HIP
Change-Id: If8caa844571cb8581450df9ffdb76e2445c75f13
2017-03-27 11:00:39 -05:00
Aditya Atluri 9aef93f03e removed LLVM_HOME from hipcc
Change-Id: Ic3dfdde9d28f08bf54b12dfc38ab1f25884bcfab
2017-03-23 11:08:19 -05:00
Aditya Atluri 5a0685c137 removed llvm dependency and metadata functionality
Change-Id: Ib9783b75d326559ed29c5aa2218aed40d20ad0fb
2017-03-23 10:16:37 -05:00
Aditya Atluri a19bce16e4 fixed paths to find llvm
Change-Id: I0a4af8cea2f44fea011d09fc300e382984746d17
2017-03-21 14:22:49 -05:00
Aditya Atluri 9645b0e0dc 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
2017-03-17 13:11:34 -05:00
Siu Chi Chan c6efbc1f25 replace code names with gfx names
Change-Id: I5e0b96a0b474b16cfa92077a30a5b80b7230254b
2017-03-15 12:26:13 -04:00
Maneesh Gupta 42faa4a4fe hipcc: Fix warning when HCC_AMDGPU_TARGET is not defined
Change-Id: I5cc6b0e9fb23ec78152d8bcfe9e7511e2fe91055
2017-03-15 12:03:05 +05:30
Maneesh Gupta f32980847f default to gfx803 instead of fatbin if no arch specified
Change-Id: I83d56c6ede11c356d383b09d7eb3a5f08c8d8c84
2017-03-14 14:34:25 +05:30
Maneesh Gupta d29a097905 hipcc: Support targets specified via HCC_AMDGPU_TARGET
Change-Id: I69fda40d9f666325d377f4b4335e7ee693069214
2017-03-14 14:29:30 +05:30
Maneesh Gupta 1b92ae9917 Add gfx900 support
Change-Id: I3be2fbdcb6d3fa776c4fe668586c67245a1323f2
2017-03-14 13:51:38 +05:30
Siu Chi Chan f9db1690c3 fix hcc version detection in hipcc
Change-Id: I880be03ad67e99280a259369bfe25488bf53f0bd
2017-03-06 15:34:30 +05:30
pensun be95cc914f Define __HIPCC__ flag at compile time when using HIPCC on HCC path
Change-Id: I5e967e0e2327264d5d3b0ca705c2504fcd33d75e
2017-02-28 16:20:48 -06:00
Siu Chi Chan ca8045e6e4 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)
2017-02-16 13:12:32 +05:30
Maneesh Gupta 71363810dd Fix arch specific hcc extra libs env var
Change-Id: I7429da2f1cb98750d6a9601e7e5bde844a098487
2017-02-09 14:38:39 +05:30
Aditya Atluri c6c90f6f5a added architecture specific macros
1. Added __HIP_ARCH_GFXNUM__
2. Usage, -D__HIP_ARCH_GFX803__=1

Change-Id: I68b3a85d62cfab3a45d2b7a70cb3518ab2565236
2017-02-08 19:45:32 -06:00
Aditya Atluri 400d0d4f78 fixed hipcc for new compiler flags
Change-Id: I49ec059be20ff26b7482c84d91ab7a43826c6a8d
2017-02-08 14:06:01 -06:00