Grafik Komit

83 Melakukan

Penulis SHA1 Pesan Tanggal
Aditya Atluri f97eec0d3b added kernel only compilation feature for hipcc
1. Added hipgenisa.sh file to compile kernel code to hsa code object
2. Changed hipcc to call hipgenisa.sh, making hipcc compiling the kernels

Change-Id: I976459c1ebb24343e1b1fe38b4c3a203f1adffa9


[ROCm/clr commit: 2f8b2fca6b]
2016-08-31 13:05:57 -05:00
Aditya Atluri 41a363a6b7 Changed module api to work with nvcc and hipcc path
- Added cuda and cudart linking for nvcc path in hipcc
- Added hipMemcpyHtoD and hipMemcpyDtoH for nvcc path
- Changed hipDeviceptr to hipDeviceptr_t
- Fixed hipMemcpy*to* API signatues

Change-Id: I6ef076b507f92502efda475c83dcdcdd462afc37


[ROCm/clr commit: fb0c432095]
2016-08-29 15:05:12 -05:00
Maneesh Gupta 7064683540 hipcc needs to link against supc++
Change-Id: Ica0949099a0bdfe2a493341dc1cd96ec93f34f11


[ROCm/clr commit: 0c051fede1]
2016-08-26 10:35:30 +05:30
Maneesh Gupta 9fedb8dc6d Make it easier to switch between HIP library formats
Change-Id: Id16406795a81f4bb64dbcb76b9b8763ffe59aac6


[ROCm/clr commit: 8f19a51521]
2016-08-19 13:07:22 +05:30
Aditya Atluri 5513a08601 Added kernel compilation driver apis
1. Added 2 new driver apis, hipModuleLoad, hipModuleGetFunction

Change-Id: If464a7fad178121e3da791c7ac9e17ebc01a9cd0
Issues: When a sample written with them shows Aborted (core dumped) when exiting


[ROCm/clr commit: b8597512ca]
2016-08-16 14:36:25 -05:00
Maneesh Gupta 2d8b482864 Several improvements to hipcc, hipconfig and CMakeLists.txt
- moved hip base version information back to hipconfig
 - fixed bug in hip patch version generation
 - renamed .hipconfig to .buildInfo
 - HCC_HOME is logged to .buildInfo only when HIP_DEVELOPER environment
 - variable is defined
 - hipcc and hipconfig require perl 5.10.1 or above
 - replaced unless defined with logic-defined or
 - added ROCM_TARGET for carrizo
 - moved config parsing to a subroutine
 - config parsing does not set VALID key anymore
 - hipcc honors HCC_HOME environment variable above buildInfo
 - hip_base package now bundles .version in bin directory

Change-Id: Iaeea6d7529671220b02e07337946aaee0af90310


[ROCm/clr commit: 85784149fa]
2016-08-14 16:22:25 +05:30
Maneesh Gupta dbf39d1c5b Updates to HIP version string format
HIP patch version is now a monotonically increasing number

Change-Id: Ia6e35794b702bbd2018c502564d0a65997819687


[ROCm/clr commit: 346ae7bc42]
2016-08-12 23:21:37 +05:30
Aditya Atluri 570e6242a3 Added fix for using HCC_VERSION
1. The variable is brought outside the conditional so that its scope is increased

Change-Id: I2d2689553e67930050fe5b3648739f0f72c3bbc8


[ROCm/clr commit: 5a47758033]
2016-08-11 16:13:44 -05:00
Aditya Atluri a178c9b9e2 Change hipcc to take HCC_HOME from hipconfig by default
1. Current implementation checks both env var and value in hipconfig and reports error
2. New implementation gives value in hipconfig with highest priority
3. If hipconfig is not present, fall back to env variables.

To Devs: No need to switch between environment variables for different HCC + different HIP.

Change-Id: I6cdf37e1429d7f07be3a68c7e5ba1533d832962b


[ROCm/clr commit: df1dd53453]
2016-08-11 15:31:24 -05:00
Maneesh Gupta 0dd56073db Fix build issues due to refactoring changes
Change-Id: I0a709ff4864244ba1b49e1a25327e3901ed6e17f


[ROCm/clr commit: fcafb975a6]
2016-08-09 22:49:32 +05:30
Maneesh Gupta f468d7b0b8 .hipconfig now lives in lib
Also moved reading .hipconfig to begining of hipcc

Change-Id: Ibb9d32bef64a79f189aa037c36814759c8cc8052


[ROCm/clr commit: 6a2e92f7c8]
2016-08-03 12:01:48 +05:30
Maneesh Gupta 9739e7b9c6 hipcc reads .hipconfig
hipcc dies if HCC_VERSION is not same as the one used to build HIP

Change-Id: I180c0108812fe5cb6c5304477557c524a4a61f75


[ROCm/clr commit: 1381681335]
2016-08-03 11:32:08 +05:30
Maneesh Gupta 4adc12f379 Merge branch 'release_0.92.00' into amd-develop
[ROCm/clr commit: 25c65c5fc4]
2016-08-03 09:10:44 +05:30
Maneesh Gupta 1d1d071b2d Fix hipcc to work correctly when HIP_ATP_MARKER is not defined
Change-Id: I7cc525daccf896704e6ccf6d04ed395fda622031


[ROCm/clr commit: 58097bb717]
2016-08-03 09:08:40 +05:30
Ben Sander 4094170fd7 Make HCC ignore register keyword
- (previously would emit a warning)
- Also tweak documentation.

Change-Id: I0f4f00f82f8cc53d420112570f2d7675535e6aea


[ROCm/clr commit: b9e48d6066]
2016-07-26 12:13:48 -05:00
Maneesh Gupta 68b1a199c4 Fix using ATP markers
Change-Id: If2d04f80b580237426c569737551e2001a8cd35a


[ROCm/clr commit: dffed956fb]
2016-07-21 16:02:51 +05:30
Maneesh Gupta 997cb27be8 Merge branch 'hiparray' into amd-develop
Change-Id: I63ca7b1db7b593ac5cfb3fd7cd5d08d6e4075a4c


[ROCm/clr commit: 7d5cffdc17]
2016-07-21 12:29:56 +05:30
Maneesh Gupta 0b97390948 Bump HIP version to 0.92.00
Change-Id: I4d653213dcf3ddf7d09d36433afe31e21d17a7ee


[ROCm/clr commit: 8c4cd59903]
2016-07-21 09:52:08 +05:30
Maneesh Gupta 87003ac6c5 Handle linker warning correctly
Change-Id: Ifca5886e31b4551603944c2b90a8e532442e889f


[ROCm/clr commit: 0eb4f5e108]
2016-07-15 10:40:56 +05:30
Maneesh Gupta ad1f67604c Add specifying ROCm target support to HIP
Change-Id: I42930d8ccf0dafe408ce5bebe2d95f99e544ee8d


[ROCm/clr commit: 1be2dbb150]
2016-07-15 10:08:27 +05:30
Maneesh Gupta f75691db73 Whitespace cleanup in hipcc
Change-Id: I36d32808e9e393df44ffd80b49d09ccf68b5751e


[ROCm/clr commit: b0dc9d208a]
2016-07-13 11:26:03 +05:30
Maneesh Gupta ab99447c73 Move hip version information to hipconfig
Change-Id: I2892a9eb9356ac5310b89a433d858c1c3eb986ee


[ROCm/clr commit: 1b184c8527]
2016-07-11 16:38:41 +05:30
Aditya Atluri cf3186cd63 moved half support to a source file
Change-Id: I7c09b41877e22c1b743dea25a585e5307427dafd


[ROCm/clr commit: 38720f8a4e]
2016-06-30 18:23:29 +05:30
Rahul Garg 38987ce023 Included code to calculate value of maxThreadsPerMultiprocessor property
Change-Id: Ie7cad7442f36a7163e715048de5a309febc28664


[ROCm/clr commit: 226aa917e7]
2016-06-24 15:10:11 +05:30
Maneesh Gupta 2f54161c11 Updated version string
Change-Id: I86695e5deba87ef3a8d390d9a78a88be815dff0e


[ROCm/clr commit: 61641cb8e8]
2016-06-21 08:39:47 +05:30
Maneesh Gupta 4009b60b44 hipcc supports printing HIP version
Change-Id: I9f1cd9a29ded9d354b9ebe265dcd91b060e8fc08


[ROCm/clr commit: 29ca733be2]
2016-06-14 14:51:03 +05:30
Jack Chung c12b4d931d Squashed commit of the following:
commit 9548493fa754b3bf5c31cbdc2211db1e73e8c07c
Author: Jack Chung <whchung@gmail.com>
Date:   Mon May 23 11:57:23 2016 +0800

    Rename hipExternShared test to hipDynamicShared

    Change-Id: I180d9d539420fb69cfc121eceaa7db9da03483b2

commit 827081f8244a38f010789d556db0c4ff7b6422d8
Author: Jack Chung <whchung@gmail.com>
Date:   Mon May 23 11:56:27 2016 +0800

    Rename HIP_DECLARE_EXTERN_SHARED to HIP_DYNAMIC_SHARED

    Change-Id: I22362d179812ac547e0f11ba4e2bb999050e08ae

commit 4c277228ed41af187739610fa17eab1fb144c947
Author: Jack Chung <whchung@gmail.com>
Date:   Thu May 19 17:49:52 2016 +0800

    Adopt new interface to get dynamic LDS in hc.hpp

    Change-Id: I47b433b714633a4c97df87c40a0b1d3386429a00

commit 5a36117d777064113a528dc47b42e8c8413baa97
Author: Jack Chung <whchung@gmail.com>
Date:   Thu May 19 11:29:24 2016 +0800

    Add test patterns for regular expression to match "extern __shared__"

    These test patterns should better be saved as an individual test case, but I'm
    not familiar with HIP test structures so I leave them as comments in hipify as
    of now.

    Change-Id: I7fee89c89b9e73de2133357a226ec0c769733531

commit 1b26284168c7f5339f63338fd0149bed5d994656
Author: Jack Chung <whchung@gmail.com>
Date:   Thu May 19 11:25:23 2016 +0800

    Add one HIP unit test to use HIP_DECLARE_EXTERN_SHARED

    Change-Id: I4d9907815920693a74ea9d575fe26e7c67636109

commit 77b816ee5972b13d829d5bbcf06fbfd07acea2af
Author: Jack Chung <whchung@gmail.com>
Date:   Wed May 18 19:18:59 2016 +0800

    Adopt HIP_ prefix for DECLARE_EXTERN_SHARED macro

    Change-Id: I555ded16b449b67d2e20904013d86fe1ded6a2be

commit ef0997939c3578a9ae11621bf21c0416f04d2622
Author: Jack Chung <whchung@gmail.com>
Date:   Wed May 18 17:42:04 2016 +0800

    Modify hipify to support converting extern __shared__ to DECLARE_EXTERN_SHARED macro

    Added regular expression to search & replace extern __shared__ declarations to
    DECLARE_EXTERN_SHARED macro.

    Limitation:
    - Won't work if "extern __shared__" is declared at global scope

    Sample Usages:
    extern __shared__ double foo[];
    extern __shared__ unsigned int foo[];
    extern volatile __shared__ double foo[];
    extern volatile __shared__ unsigned int sdata[];
    extern __shared__ volatile unsigned int sdata[];
    extern __shared__ T s[];
    extern __shared__ T::type s[];
    extern __shared__ blah<T>::type s[];
    extern __shared__ typename mapper<Float>::type s_data[];
    extern __attribute__((used)) __shared__ typename mapper<Float>::type s_data[];

    Change-Id: I2be0b7039adeddb789f5a2b067d403a43fdc3e26

commit 93ff268724493aedfacdcd5a5aa9a100f4ebaed0
Author: Jack Chung <whchung@gmail.com>
Date:   Wed May 18 15:13:09 2016 +0800

    Introduce DECLARE_EXTERN_SHARED macro to encapsulate "extern __shared__" decls

    Change-Id: I93b2d37c763195b0ca9fd0afee78605a1e3272db

commit cff9c95412de343cc6405158b5acc4f1029267ff
Author: Jack Chung <whchung@gmail.com>
Date:   Wed May 18 12:53:54 2016 +0800

    Add __get_dynamic_groupbaseptr() to point to dynamic LDS

    Change-Id: I97b548d8a691488057617c551a8f331cad7afc77

Change-Id: I84e7875b76fa1f59e860e19c93bd4209cdd1fd2c


[ROCm/clr commit: 65448e74ed]
2016-06-05 06:20:44 -04:00
Ben Sander 76e08e3ea1 libstdc++ is default
[ROCm/clr commit: a35e995244]
2016-05-03 11:14:27 -05:00
Ben Sander 18635995af add fallback to libc++
[ROCm/clr commit: 6a960aff38]
2016-05-02 23:50:39 -05:00
Ben Sander 41c57d1e00 Merge branch 'privatestaging' into grid_launch
[ROCm/clr commit: 20043d602e]
2016-05-02 18:38:20 -05:00
Ben Sander d7933df2d3 Use hipconfig to determine platform
[ROCm/clr commit: c5bec313ee]
2016-05-02 11:33:22 -05:00
Ben Sander 65ea6991e0 add hostname
[ROCm/clr commit: 0c636007a2]
2016-04-28 17:41:11 -05:00
Ben Sander b2608d2949 hipcc uses -stdlib=stdlibc++ by default.
hipcc switches to -stdlib=libc++ if user requests it.
hack to disable LDG.


[ROCm/clr commit: 06e54694c5]
2016-04-28 13:17:49 -05:00
Ben Sander f000ced85c add hostname
[ROCm/clr commit: 31f41ba52a]
2016-04-25 15:13:23 -05:00
Maneesh Gupta 03014e8a1d Merge branch 'release_0.84.00' into privatestaging
Conflicts:
	include/hcc_detail/hip_runtime.h
	src/hip_hcc.cpp


[ROCm/clr commit: 02e6fc27f4]
2016-04-22 10:55:58 +05:30
Aditya Atluri b857720440 added support for __ldg
[ROCm/clr commit: b493eac7e0]
2016-04-20 12:25:40 -05:00
Maneesh Gupta c99285c5fb Prefix HIP includes with hip/
[ROCm/clr commit: c4cc76398c]
2016-04-19 15:02:12 +05:30
Maneesh Gupta 165e7187c8 Handle non-versioned so files being present only in rocm/lib
[ROCm/clr commit: 69f50d0ced]
2016-04-15 16:20:35 +05:30
Maneesh Gupta 1293709fc0 Replace /opt/hcc -> /opt/rocm/hcc and /opt/hsa -> /opt/rocm/hsa
[ROCm/clr commit: cf4c3b0913]
2016-04-15 12:56:31 +05:30
Maneesh Gupta e98b0db05c Change default HIP installation to /opt/rocm/hip
[ROCm/clr commit: efe468bbab]
2016-04-14 16:36:55 +05:30
Aditya Atluri 30e883a40d added back hc flag
[ROCm/clr commit: 5b38c9cffe]
2016-04-11 13:04:13 -05:00
Aditya Atluri f381fbb2be added C guard to hip_runtime.h
[ROCm/clr commit: 42df534354]
2016-04-11 13:01:02 -05:00
Maneesh Gupta 38815fc8e6 Fix broken CUDA path in hipcc
[ROCm/clr commit: 64ca5e466d]
2016-04-07 10:48:16 +05:30
Aditya Atluri 7f5a1e310f Corrected corner cases
[ROCm/clr commit: a7590e3537]
2016-04-06 14:50:27 -05:00
Aditya Atluri b98fcb7764 Added feature for cross-compilation and seperated hcc api from hip api
[ROCm/clr commit: 39f27984a8]
2016-04-06 14:18:51 -05:00
Maneesh Gupta b57a484d07 Add c++abi to linker options for HCC
[ROCm/clr commit: 7aad3bab84]
2016-04-02 22:32:05 +05:30
Maneesh Gupta a31f0e7c07 Initial (non-default) support for shared library HIP
[ROCm/clr commit: a8879638b6]
2016-04-01 16:08:49 +05:30
Aditya Atluri 19763f8f1e Revert to multiple output files than single .a lib
[ROCm/clr commit: b2b3eec95c]
2016-03-30 07:54:18 -05:00
Ben Sander 829fee518f include codexl marker path, if found
[ROCm/clr commit: 57783aad2d]
2016-03-29 17:26:44 -05:00
Ben Sander 8cf3f24d5c Improve automated platform detection.
If AMD GPU is installed and detected by driver, default
HIP_PLATFORM to hcc.


[ROCm/clr commit: 6d9eafa18a]
2016-03-25 17:08:34 -05:00