Commit Graph

196 Commits

Author SHA1 Message Date
Maneesh Gupta 94a22fe015 Remove libsupc++ dependency from HIP
Change-Id: Ib843f99dfb3057b7c28029250c2449732ea7f17f


[ROCm/hip commit: f34f5c8684]
2017-11-02 12:29:09 +05:30
Siu Chi Chan b6265074fa use libc++ on centos 7 and rhel 7.4
[ROCm/hip commit: cd6996614f]
2017-10-31 18:14:07 +00:00
Maneesh Gupta 8b580446c4 Bump HIP version to 1.4 and update release notes
Change-Id: I3570dedb32fe5fec6f60565c587a3282a4c6c709


[ROCm/hip commit: ca239ab6ef]
2017-10-06 10:26:11 +05:30
wsttiger 1eeda56cfe Remove the conversion of warpSize to be consistent with hipDeviceProp
[ROCm/hip commit: 2ec8de3b27]
2017-09-15 15:05:05 -05:00
Maneesh Gupta ed0f94c051 Merge pull request #155 from wsttiger/master
Modify hip headers such that they are more compatible with strict C compiler

[ROCm/hip commit: 8c92d28ff3]
2017-09-15 10:49:55 +05:30
Aaron Enye Shi 198d58a5e4 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/hip commit: ffe21c9d75]
2017-09-14 10:55:38 -04:00
Aaron Enye Shi d907b33b5d Added support for RHEL 7.4
[ROCm/hip commit: a6028ade1e]
2017-09-13 14:21:43 -04:00
Aaron Enye Shi 2b062793ed Update hipcc
[ROCm/hip commit: b340f4a6ed]
2017-09-12 17:50:44 -04:00
Aaron Enye Shi a6e0f18352 Must explicitly add libc++ and libc++abi
[ROCm/hip commit: c7746b12ac]
2017-09-12 16:59:43 -04:00
Aaron Enye Shi d277b17044 [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/hip commit: edd0b360b2]
2017-09-08 11:46:10 -04:00
Maneesh Gupta 5a81e6d50d Bump HIP version to 1.3 and update release notes
Change-Id: I53f89efca03472cb906bd56200a2bf2996453915


[ROCm/hip commit: 8c94bc0009]
2017-08-16 11:18:51 +05:30
wsttiger db3ebbcbae Add missing CUDA tags
[ROCm/hip commit: 512214e930]
2017-08-15 13:22:20 -05:00
Maneesh Gupta 5c9d90007f [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/hip commit: 85ff6e3ef4]
2017-07-31 10:11:19 +05:30
Maneesh Gupta 514f5cb8fb [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/hip commit: 830e85060b]
2017-07-28 16:18:15 +05:30
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
Aditya Atluri 6dc545d921 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/hip commit: 961440b593]
2017-07-21 15:50:12 -05:00
Weixing Zhang 65bec11393 HIP Texture Support
[ROCm/hip commit: e671cec367]
2017-07-17 15:16:12 -04:00
Sun, Peng ac6d9e6c5c fix typo in hipcc
Change-Id: I5f5fb3d8f1e5e8104dca45dc213c13ae9d98a583


[ROCm/hip commit: 40d0a203f8]
2017-07-01 09:43:31 -05:00
Maneesh Gupta 77804112c6 Bump HIP base version to 1.2
Change-Id: I8ecc164afed4383f78579ed86a5c8c11a73b0780


[ROCm/hip commit: 901538da77]
2017-06-14 09:45:46 +05:30
Maneesh Gupta fba97f5d36 Merge branch hipify-updates into amd-develop
Change-Id: I13d8750027a2a8787e4eb2e1ed525cf69d14b805


[ROCm/hip commit: 5977a2e8b9]
2017-06-12 10:10:19 +05:30
Maneesh Gupta ce0ecfd067 Initial implementation of hipify-cmakefile
Change-Id: Id365da9f887b5c3409639f000b430d093fd4f6b3


[ROCm/hip commit: 5339320485]
2017-06-12 09:57:17 +05:30
emankov 737e0cc93e [HIPIFY] annotation
[ROCm/hip commit: ccc4cd1a3e]
2017-06-02 16:33:48 +03:00
emankov ca707fe693 [HIPIFY] rename legacy hipify perl script and its usage to hipify-perl
[ROCm/hip commit: 4d035caedf]
2017-06-02 16:30:43 +03:00
emankov dce8786e26 [HIPIFY] *.inl extension support for batch processing
[ROCm/hip commit: 30000ef130]
2017-05-16 19:52:39 +03:00
Maneesh Gupta 54fe4d2d09 Force stdlib=libc++ on UB14.04
Change-Id: I7f24d663e57fbbee56afde12a0e61fc8bfc1e9b6


[ROCm/hip commit: 90cd2945f9]
2017-04-03 15:09:31 +05:30
Sun, Peng fbb7b94b9c Fix hip Module APIs by disabling GGL when hipcc takes -genco option
Change-Id: I0a79e9c8e750f92c3d0be336d6ff709a2d1afd63


[ROCm/hip commit: 86864a29e4]
2017-04-02 11:56:15 -05:00
emankov 4ea7a521e2 [HIPIFY] set execute mode for bash scripts
[ROCm/hip commit: ec744797dd]
2017-03-29 17:23:41 +03:00
Evgeny Mankov 72bf251f1a [HIPIFY] Rename bash scripts.
[ROCm/hip commit: ca09afcaab]
2017-03-29 16:36:46 +03:00
Aditya Atluri d7b6039544 disabled metadata apis
Change-Id: Ifb8839c581644cccc2afcd18c38a866f649a4144


[ROCm/hip commit: 7ac438ed02]
2017-03-28 10:46:31 -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
Aditya Atluri 2ec42a004a removed LLVM_HOME from hipcc
Change-Id: Ic3dfdde9d28f08bf54b12dfc38ab1f25884bcfab


[ROCm/hip commit: d99d5f4bbe]
2017-03-23 11:08:19 -05:00
Aditya Atluri e60749f3f0 removed llvm dependency and metadata functionality
Change-Id: Ib9783b75d326559ed29c5aa2218aed40d20ad0fb


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


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


[ROCm/hip commit: 4ae1ea8143]
2017-03-15 12:03:05 +05:30
Maneesh Gupta aeacc966ae default to gfx803 instead of fatbin if no arch specified
Change-Id: I83d56c6ede11c356d383b09d7eb3a5f08c8d8c84


[ROCm/hip commit: 63074e24d9]
2017-03-14 14:34:25 +05:30
Maneesh Gupta 26bd86e76f hipcc: Support targets specified via HCC_AMDGPU_TARGET
Change-Id: I69fda40d9f666325d377f4b4335e7ee693069214


[ROCm/hip commit: 13ab31ba34]
2017-03-14 14:29:30 +05:30
Maneesh Gupta 4a21f2f768 Add gfx900 support
Change-Id: I3be2fbdcb6d3fa776c4fe668586c67245a1323f2


[ROCm/hip commit: db1bd201cd]
2017-03-14 13:51:38 +05:30
Maneesh Gupta d898444c44 FindHIP: better handling for custom HCC_HOME
Change-Id: Ica267de11cde58d1e759cd1fd053b699649ea76a


[ROCm/hip commit: 12e8d635aa]
2017-03-07 14:40:04 +05:30
Siu Chi Chan c441371fef fix hcc version detection in hipcc
Change-Id: I880be03ad67e99280a259369bfe25488bf53f0bd


[ROCm/hip commit: 910df3d80f]
2017-03-06 15:34:30 +05:30
pensun 0157d13a56 Define __HIPCC__ flag at compile time when using HIPCC on HCC path
Change-Id: I5e967e0e2327264d5d3b0ca705c2504fcd33d75e


[ROCm/hip commit: fd610e497b]
2017-02-28 16:20:48 -06:00
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 4e9f1e8a66 Fix arch specific hcc extra libs env var
Change-Id: I7429da2f1cb98750d6a9601e7e5bde844a098487


[ROCm/hip commit: d14b239dd3]
2017-02-09 14:38:39 +05:30
Aditya Atluri d48f7e93cc added architecture specific macros
1. Added __HIP_ARCH_GFXNUM__
2. Usage, -D__HIP_ARCH_GFX803__=1

Change-Id: I68b3a85d62cfab3a45d2b7a70cb3518ab2565236


[ROCm/hip commit: 9a1989193a]
2017-02-08 19:45:32 -06:00
Aditya Atluri 8794954411 fixed hipcc for new compiler flags
Change-Id: I49ec059be20ff26b7482c84d91ab7a43826c6a8d


[ROCm/hip commit: 55d92833fb]
2017-02-08 14:06:01 -06:00
Aditya Atluri c692cd5d4a include arch specific ir on fallback path
Change-Id: Ib04996aae2c21eb73ef2a9f6305915e0caccd704


[ROCm/hip commit: 27d2fc99ca]
2017-02-08 12:19:06 -06:00
Aditya Atluri 82c0dcb03f Fixed Hawaii link issues
1. Split hip_ir.ll to hip_hc.ll and hip_hc_gfx803.ll
 a. hip_hc.ll contains arch generic ir implementations
 b. hip_hc_gfx803.ll contains gfx803 (fiji, polaris) specific ir
2. HIPCC can now parse --amdgpu-target=*.
 a. Usage: hipcc --amdgpu-target=gfx803 --amdgpu-target=gfx701
 b. TODO: Convert to --amdgpu-target=gfx803,gfx701
3. With LLC in HCC able to generate native f16 isa, removed inline half asm math ops
4. Fixed threadfence and threadfence_block to use functions in rocdl

Change-Id: Ic9a9e3e04139b0d75d2c2a263c030ca77adc1019


[ROCm/hip commit: 01b66dd998]
2017-02-08 12:04:05 -06:00
Aditya Atluri 08a67a522d fixed arch compiler flag
Change-Id: I19f7a0ea513d6b8059f0c10cd0e7a5ead510e246


[ROCm/hip commit: b37422d30b]
2017-01-27 08:51:48 -06:00
Aditya Atluri a13cb5af4f fixed kernel only compilation for module api
Change-Id: I567992fa9b87125318edba41fd82d2f7bc5504a1


[ROCm/hip commit: 6ba848a40f]
2017-01-27 08:41:42 -06:00