Граф коммитов

219 Коммитов

Автор SHA1 Сообщение Дата
Aditya Atluri 6f95ad0a8d Partial fix async after kernel launch signal issue
Change-Id: Ib48d6564379160035bded9493b93663fba361710


[ROCm/hip commit: c756bb3398]
2016-07-23 14:54:20 -05:00
pensun 2e5a6ab630 Add empty stubs for threadfence family routines, changes include:
- stubs and documentation in include/hcc_details/hip_runtime.h
    - stubs with "no-op" in src/hip_memory.cpp
    - document update in hip_kernel_language.md, add suggestions to
    disable L1 and L2 caches when using the threadfence routines.

Change-Id: Ic0753170f802003055bca9d7476d7f48817b98b7


[ROCm/hip commit: f31668fee4]
2016-07-22 10:40:58 -05:00
Maneesh Gupta f02201e8c3 Replace calls to ihipInit with use of HIP_INIT_API macro
Change-Id: Iabf7df79f0238a8ddffea4607fe945df36642850


[ROCm/hip commit: 71d51170ef]
2016-07-22 15:46:55 +05:30
Maneesh Gupta cfd8b8f0c4 Fix using ATP markers
Change-Id: If2d04f80b580237426c569737551e2001a8cd35a


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


[ROCm/hip commit: 7022986ab2]
2016-07-21 12:29:56 +05:30
Aditya Atluri 404fb868c3 added fix for signal overflow in kernels
Change-Id: Ie0b1f97f69b7d7b34e445f6f120472819be03a0e


[ROCm/hip commit: c8542007b5]
2016-07-19 13:51:44 -05:00
Maneesh Gupta 81b29aed8c Merge branch 'amd-develop' into amd-master
Change-Id: I04f85b207e15e66c1a546675dc0937726ee08362


[ROCm/hip commit: 3f204b8580]
2016-06-30 18:36:07 +05:30
Fan Cao f46c981363 Replace GPU agent with CPU agent properly for memory async copy API
ihipStream_t::copySync use GPU agent in memory async copy API, even
if the src/dst memory does not belong to GPU, which cause the hsa
runtime to choose a slower copy engine.

SWDEV-95191

Change-Id: If3cab3d493c0c96ed63721cdcf28247a1193887c


[ROCm/hip commit: 6a2bbbcb75]
2016-06-30 18:23:29 +05:30
Aditya Atluri aa0139f89f moved half support to a source file
Change-Id: I7c09b41877e22c1b743dea25a585e5307427dafd


[ROCm/hip commit: 5633cc34cc]
2016-06-30 18:23:29 +05:30
7SK e0874ab540 NVCC_COMPAT
add support for both cuda compatible implementation and hcc(faster)
implementation with test

Change-Id: I79a22344f458391d7dffac5f147619a542e97e4e

[ROCm/hip commit: 8264d5d6bd]
2016-06-28 09:36:06 +05:30
Maneesh Gupta fed706a1d8 Merge branch 'amd-master' into amd-develop
[ROCm/hip commit: f4cc90472d]
2016-06-24 21:13:11 +05:30
Rahul Garg b77ff1168c Included code to calculate value of maxThreadsPerMultiprocessor property
Change-Id: Ie7cad7442f36a7163e715048de5a309febc28664


[ROCm/hip commit: 3029be78b8]
2016-06-24 15:10:11 +05:30
Ben Sander a771352253 Grid-launch updates to 2.0 and cleanup of old.
_ Use fields from GRID_LAUNCH_20 structure
  (See USE_GRID_LAUNCH_20 define, currently set to 0)
  "1" will require HCC support.
- Remove old DISABLE_GRID_LAUNCH support.

Change-Id: I584ce648d217251789a6283cf27feb24cb7dc8d1


[ROCm/hip commit: 9f29cc6989]
2016-06-21 23:24:38 -05:00
Maneesh Gupta b869655714 default value of uninitialized dim3 elements should be 1
Change-Id: Idff38fac8dfca68f38f1714f8fdec64df2890a6a


[ROCm/hip commit: 1a2db6e6e4]
2016-06-20 10:13:46 +05:30
Aditya Atluri 9a1bce640c able to pass non-dim launch parm to kernel launch
Change-Id: I0411849a27efcba597a1a9aa08be179635e04988


[ROCm/hip commit: 90cd67e0b5]
2016-06-18 11:28:20 -05:00
Ben Sander 388fcd8003 Clean up old work-week and USE_* refs
Change-Id: I929c979fa085f8e5205194cbccca46e9b5516aa9


[ROCm/hip commit: 5c9e286ddc]
2016-06-17 15:18:57 -05:00
Aditya Atluri 5df1a0d2c8 added tests for host math functions
Change-Id: I66a5c574a27190e32054586f07ecf20e1ff71292


[ROCm/hip commit: ae12867774]
2016-06-17 15:05:33 -05:00
Aditya Atluri c0301aa422 added bessel nth order function
Change-Id: I18a64d894dda9330b39638535dfafd7ce31bb968


[ROCm/hip commit: 2b0c2f494b]
2016-06-17 09:22:23 +05:30
Ben Sander 0268c1e4e6 NVCC improvements.
- Complete translation tables for cudaError <-> hipError_t.
- Remove some odd errors that were not correctly translated or not used.
- Add HIPCHECK_API to test infrastructure.  Used for negative testing
  an API ; if a mismatch occurs it shows the expected return error
  code.  Can also print a warning rather than error.
- Enable hipMemoryAllocate on NV system, and review error coded.
- Add hipErrorName to nvcc.

Change-Id: I680427dcf32a5796d5913cf9e7f3b4c6f6b91599

Conflicts:
	tests/src/CMakeLists.txt

Bug fixes and improved docs for hipFree and hipHostFree.

    - Passing NULL pointer initialized runtime and return hipSuccess
      (not an error like before).
    - add negative test for this. (hipMemoryAllocate, improved)
    - Match NVCC errors for invalid pointers, add to test.
    - Update hipFree and hipHostFree docs.
    - hipGetDevicePointer always set *devicePointer=NULL, even for
      invalid flags.
    - Gate shared memory usage on specific HCC work-week.

Change-Id: I533b4fd3280a3d6cdbf05eb768976f0c7506c012


[ROCm/hip commit: 2ab19ca505]
2016-06-16 06:13:51 +05:30
Aditya Atluri 8e5334a376 added more host functions and tests
Change-Id: I9904e65e14c5479ba33d836c5c0b763cb5af71e3


[ROCm/hip commit: 7cb45e2d87]
2016-06-15 11:45:19 -05:00
Aditya Atluri a663880f73 added host device functions
Change-Id: I8f299752fb8dd8e8947da62e4ad88842c1c19f62


[ROCm/hip commit: e01e5d2fe3]
2016-06-14 18:14:44 -05:00
Aditya Atluri 2986956d41 added bessel zero and one order functions
Change-Id: I57039d54eae7207db00415bc7ba09bbf9cb6425a


[ROCm/hip commit: ec48e50101]
2016-06-14 11:50:48 +05:30
Aditya Atluri c11202460b added erfinv software implementation
Change-Id: Ib1a5584f6c81ab3afa70f7bcbfd7780e156454e3


[ROCm/hip commit: d7df02e310]
2016-06-14 00:09:41 -04:00
Aditya Atluri 37e5903a68 added more device functions
Change-Id: I191919060b393772ee442cc19d83479217c5a4ce


[ROCm/hip commit: 9ac6e422f0]
2016-06-13 11:55:12 -05:00
Aditya Atluri bc1e9a27bb added normcdf support
Change-Id: I4887bc588589ed067eaa339d5eccd988c1c5d649


[ROCm/hip commit: 798aa48032]
2016-06-13 10:09:37 +05:30
Aditya Atluri 3802673dac Added more device functions
1. Added copyright for device float test
2. Added device double functions support
3. Added device double functions test
4. Corrected device function signatures in headers

Change-Id: I13c8829682c925992f5cad84062bc9f702fe4048


[ROCm/hip commit: 25a273e4df]
2016-06-10 09:46:31 -05:00
Aditya Atluri aff1391fc2 added more float device functions
Change-Id: I106ce6de9ed8806b3699dcf0add9efc9e8583615


[ROCm/hip commit: c6dfb0d079]
2016-06-10 06:22:00 -04:00
7SK da629e1b2d fix_ldg
Change-Id: I53de5fa91b4f57d496ffe46787d197ae84dde4a4


[ROCm/hip commit: 1463075608]
2016-06-09 16:56:05 -04:00
Maneesh Gupta 7f493906b9 Merge "Squashed commit of the following:" into amd-master
[ROCm/hip commit: 5080084f4e]
2016-06-07 12:52:21 -04:00
Maneesh Gupta 9a579b07b8 Use cpu agent when using staging buffer
Change-Id: I195a8137e86f2752681d6ba4dc7ba1b6f654e264


[ROCm/hip commit: e920ead561]
2016-06-06 12:42:44 +05:30
Jack Chung 32276a63d3 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/hip commit: bf4ba9e09e]
2016-06-05 06:20:44 -04:00
Rahul Garg 170796f4e9 Update in clock function
Change-Id: I5819aa62693dc3b9b5d7e39944d1e58aadc72027


[ROCm/hip commit: d46b3446de]
2016-05-20 11:12:32 +05:30
Maneesh Gupta e19b6710eb Add misssing unsigned keyword to atomicInc and atomicDec
Change-Id: I658479c4c7c409dba117152165229880aeb5ab9f


[ROCm/hip commit: 8b7f60a735]
2016-05-16 10:42:13 +05:30
Rahul Garg d10703011c Support for Atomic inc and dec in HIP
Change-Id: I783e4917cece5cc379894f0d293382315fbfa8b0


[ROCm/hip commit: 381dc93b96]
2016-05-12 11:10:48 +05:30
Aditya Atluri ec5d1a3966 Added copyright for device functions file
Change-Id: I689345ae7428928b4d2d7cd37fbc561309db3256


[ROCm/hip commit: 1cf1918147]
2016-05-06 10:51:06 -05:00
Ben Sander 26b853918c comment change
[ROCm/hip commit: c921d47c17]
2016-05-03 08:33:35 -05:00
Ben Sander 0d8b15274c Merge branch 'privatestaging' into grid_launch
[ROCm/hip commit: 89df2f4e2f]
2016-05-02 18:38:20 -05:00
Ben Sander ef89f7119d Merge branch 'privatestaging' into p2p
[ROCm/hip commit: d30ad55160]
2016-05-02 11:10:10 -05:00
Aditya Atluri 1eeaa83cb2 removed warnings
[ROCm/hip commit: 3f4f6c4d41]
2016-04-30 12:11:04 -05:00
Ben Sander e29b2734a8 remove hacks to disable math or LDG functions.
[ROCm/hip commit: 558975c046]
2016-04-28 14:14:22 -05:00
Ben Sander 6e21fa88f4 hipcc uses -stdlib=stdlibc++ by default.
hipcc switches to -stdlib=libc++ if user requests it.
hack to disable LDG.


[ROCm/hip commit: bae6462e3b]
2016-04-28 13:17:49 -05:00
Aditya Atluri fb0560651d changed to guard from hc.hpp
[ROCm/hip commit: cac8110a4f]
2016-04-27 17:46:27 -05:00
bwicakso 58e026519b Merge remote-tracking branch 'refs/remotes/origin/privatestaging' into kernel_synchronization
[ROCm/hip commit: f0974e5867]
2016-04-25 13:57:28 -05:00
Aditya Atluri ca5ca85645 fixed hipmemset to use native ihip api
[ROCm/hip commit: a730d60930]
2016-04-25 11:05:30 -05:00
Aditya Atluri 9ba9051cec Fixed git spills
[ROCm/hip commit: ec23aba6f9]
2016-04-22 09:19:05 -05:00
Aditya Atluri 6b48b1be17 added workweek to hip_ldg
[ROCm/hip commit: 4dac4789ff]
2016-04-22 09:14:26 -05:00
Maneesh Gupta 2a60577e49 Revert "added full data type support for __ldg"
This reverts commit 552acd5ed5.

Conflicts:
	include/hcc_detail/hip_ldg.h


[ROCm/hip commit: 75532471b2]
2016-04-22 11:12:00 +05:30
Maneesh Gupta 90fa90295f Merge branch 'release_0.84.00' into privatestaging
Conflicts:
	include/hcc_detail/hip_runtime.h
	src/hip_hcc.cpp


[ROCm/hip commit: ffdf6ab23b]
2016-04-22 10:55:58 +05:30
Aditya Atluri 940d891899 added full make_datatype support
[ROCm/hip commit: 88a883c1a1]
2016-04-21 17:25:30 -05:00
Aditya Atluri e39de0f560 reorg make_datatype feature
[ROCm/hip commit: 9ca8584ec0]
2016-04-21 14:51:19 -05:00