Graf commitů

157 Commity

Autor SHA1 Zpráva Datum
Maneesh Gupta 4403d1dc04 [hipcc] Initialize CUDA_PATH before printing
Change-Id: Ifd448b628fa4a7055f4a439ed2c817c5f11f9bef


[ROCm/clr commit: 2027675b3f]
2018-07-25 15:29:57 +05:30
Yaxun Sam Liu 5f73275382 Fix warnings about unused command line option --hip-link
and set search path for libhip_hcc.so


[ROCm/clr commit: 555c2f9c08]
2018-07-23 14:55:07 -04:00
Yaxun Sam Liu f45c9e9d61 Fix hipcc for -M for hip-clang
[ROCm/clr commit: 6053c71323]
2018-07-23 09:26:42 -04:00
Yaxun Sam Liu 192601f691 Let hipcc use proper include and lib path for HIP/VDI
Add support of environment variable HIP_VDI_HOME.

By setting environment variable HIP_VDI_HOME to the distribution directory of HIP/VDI, hipcc
will choose proper include and lib path for hip-clang.


[ROCm/clr commit: 4627aa0085]
2018-07-23 09:26:42 -04:00
Yaxun (Sam) Liu dc1257a16c Support std::complex for hip-clang
[ROCm/clr commit: a8dc1257df]
2018-07-18 00:08:04 -04:00
Aaron Enye Shi 4b941a0db8 Merge branch 'master' into hipclang-add-amdgcn-funcs
[ROCm/clr commit: f8109c5b06]
2018-07-04 17:36:08 +00:00
Maneesh Gupta 4444910550 Merge pull request #539 from ROCm-Developer-Tools/fix-tf-link
Add workaround to hipcc for build failure in tensorflow due to missin…

[ROCm/clr commit: 874af1bf7d]
2018-07-04 11:08:52 +05:30
Maneesh Gupta f70e1ad691 Merge pull request #517 from ROCm-Developer-Tools/fix-hipcc-link
Let hipcc handle static library for hip-clang only if it contains bun…

[ROCm/clr commit: 3b157546f9]
2018-07-04 10:51:44 +05:30
Yaxun (Sam) Liu bba741a913 Add workaround to hipcc for build failure in tensorflow due to missing symbol __cpu_model
https://github.com/tensorflow/tensorflow/issues/9593


[ROCm/clr commit: 632baba353]
2018-06-25 18:14:51 -04:00
Aaron Enye Shi a764b09a14 HIPCC - Use clang if clang++ is not compiled
[ROCm/clr commit: dc850cc3e7]
2018-06-21 18:12:55 +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
Yaxun (Sam) Liu 4831cd44fc Let hipcc handle library with extension lo for hip-clang
[ROCm/clr commit: 454d45e5bb]
2018-06-19 10:51:08 -04:00
Yaxun (Sam) Liu 5efe15283b Fix handling of static library in hipcc for hip-clang
[ROCm/clr commit: fd03c8fc18]
2018-06-17 20:11:10 -04:00
Yaxun (Sam) Liu 0b5fe1601c Let hipcc handle static library for hip-clang only if it contains bundles
[ROCm/clr commit: d442a57002]
2018-06-17 20:11:10 -04:00
Yaxun (Sam) Liu 581de8660a Let hipcc handle library in linker response file for hip-clang
[ROCm/clr commit: 8d3e4b4475]
2018-06-08 11:14:26 -04:00
Maneesh Gupta 125f6201c8 Merge pull request #466 from ROCm-Developer-Tools/feature_use_Float16
Feature use _Float16 and match CUDA __half behaviour.

[ROCm/clr commit: 8ecb3eeb55]
2018-06-01 13:50:12 +05:30
Yaxun (Sam) Liu 859b4f218a Drop --amdgpu-target= options for hip-clang
They are replaced by --cuda-gpu-arch= options elsewhere


[ROCm/clr commit: 3609e6f3b2]
2018-05-30 06:47:44 -04:00
Yaxun (Sam) Liu c7d481a812 Add more function declarations to hip-clang
[ROCm/clr commit: 9c43970a27]
2018-05-25 16:18:46 -04:00
Alex Voicu a231cd5604 Remove vestigial inline LLVMIR.
[ROCm/clr commit: f2a86f3e1c]
2018-05-24 12:46:14 +01:00
Maneesh Gupta e8970c6de8 Merge pull request #454 from ROCm-Developer-Tools/hip-clang-hipcc
Let hipcc suport hip-clang

[ROCm/clr commit: 43ac6a61e7]
2018-05-21 09:51:42 +05:30
Yaxun (Sam) Liu ba92644beb Let hipcc suport hip-clang
[ROCm/clr commit: 55f01cbf36]
2018-05-17 14:40:15 -04:00
Siu Chi Chan 04bf6c5109 initial gfx906 support
[ROCm/clr commit: 368affcea4]
2018-05-10 19:28:00 +00:00
Siu Chi Chan 765f3913ce On RHEL and CentOS, don't use libc++ since we are using the devtoolset-7 which has a newer g++
[ROCm/clr commit: 0501f6c582]
2018-03-15 16:46:01 -04:00
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 998b5dc3fa Merge branch 'master' of https://github.com/ROCm-Developer-Tools/HIP into feature_purge_genco
[ROCm/clr commit: 4d0d4dc701]
2017-12-14 13:50:49 +00:00
Phaneendr-kumar Lanka 456c44394c [nvccWarnings] Fix gpu deprecated targets warnings
[ROCm/clr commit: 7a3e0bc5d0]
2017-12-12 16:00:14 +05:30
Alex Voicu aa48cc7b55 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.
[ROCm/clr commit: 4e0739c68a]
2017-12-08 04:22:57 +00:00
Rahul Garg c3ba309562 Fixed half2 issue on gfx900
[ROCm/clr commit: 20947f80fb]
2017-11-15 18:52:59 +05:30
Maneesh Gupta f579dd3c7d Remove libsupc++ dependency from HIP
Change-Id: Ib843f99dfb3057b7c28029250c2449732ea7f17f


[ROCm/clr commit: 473208368e]
2017-11-02 12:29:09 +05:30
Siu Chi Chan b04f17be8f use libc++ on centos 7 and rhel 7.4
[ROCm/clr commit: cb454d5366]
2017-10-31 18:14:07 +00:00
Aaron Enye Shi a047da2c83 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.

[ROCm/clr commit: de8c59ed00]
2017-09-14 10:55:38 -04:00
Aaron Enye Shi 718b5a12d6 Added support for RHEL 7.4
[ROCm/clr commit: bfff9bf005]
2017-09-13 14:21:43 -04:00
Aaron Enye Shi aa6fb7ccd4 Update hipcc
[ROCm/clr commit: 4f7972b0ee]
2017-09-12 17:50:44 -04:00
Aaron Enye Shi a3fba80b02 Must explicitly add libc++ and libc++abi
[ROCm/clr commit: f7a2c019c6]
2017-09-12 16:59:43 -04:00
Aaron Enye Shi 11a2e5a8bf [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'.

[ROCm/clr commit: 728f1f4c95]
2017-09-08 11:46:10 -04:00
Maneesh Gupta 5e2f8804ba [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


[ROCm/clr commit: 8f6c150134]
2017-07-31 10:11:19 +05:30
Maneesh Gupta 8e35e7a287 [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


[ROCm/clr commit: 2a2c7575eb]
2017-07-28 16:18:15 +05:30
Aditya Atluri 44c2efd050 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


[ROCm/clr commit: b10962a539]
2017-07-21 15:50:12 -05:00
Sun, Peng b52c040bd5 fix typo in hipcc
Change-Id: I5f5fb3d8f1e5e8104dca45dc213c13ae9d98a583


[ROCm/clr commit: c6dee2a266]
2017-07-01 09:43:31 -05:00
Maneesh Gupta aab655ff01 Force stdlib=libc++ on UB14.04
Change-Id: I7f24d663e57fbbee56afde12a0e61fc8bfc1e9b6


[ROCm/clr commit: 3df134971b]
2017-04-03 15:09:31 +05:30
Aditya Atluri bdaf6a3aaa disabled metadata apis
Change-Id: Ifb8839c581644cccc2afcd18c38a866f649a4144


[ROCm/clr commit: 4e5861df7a]
2017-03-28 10:46:31 -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
Aditya Atluri 620bbbc583 removed LLVM_HOME from hipcc
Change-Id: Ic3dfdde9d28f08bf54b12dfc38ab1f25884bcfab


[ROCm/clr commit: 9aef93f03e]
2017-03-23 11:08:19 -05:00
Aditya Atluri 478eb4e350 removed llvm dependency and metadata functionality
Change-Id: Ib9783b75d326559ed29c5aa2218aed40d20ad0fb


[ROCm/clr commit: 5a0685c137]
2017-03-23 10:16:37 -05:00
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
Siu Chi Chan ff4621af4e replace code names with gfx names
Change-Id: I5e0b96a0b474b16cfa92077a30a5b80b7230254b


[ROCm/clr commit: c6efbc1f25]
2017-03-15 12:26:13 -04:00
Maneesh Gupta fe01aec686 hipcc: Fix warning when HCC_AMDGPU_TARGET is not defined
Change-Id: I5cc6b0e9fb23ec78152d8bcfe9e7511e2fe91055


[ROCm/clr commit: 42faa4a4fe]
2017-03-15 12:03:05 +05:30
Maneesh Gupta f400aa48f5 default to gfx803 instead of fatbin if no arch specified
Change-Id: I83d56c6ede11c356d383b09d7eb3a5f08c8d8c84


[ROCm/clr commit: f32980847f]
2017-03-14 14:34:25 +05:30
Maneesh Gupta 59f1401f54 hipcc: Support targets specified via HCC_AMDGPU_TARGET
Change-Id: I69fda40d9f666325d377f4b4335e7ee693069214


[ROCm/clr commit: d29a097905]
2017-03-14 14:29:30 +05:30