vsytch
f72a669487
Add missing texturePitchAlignment member to the hipDeviceProp_t struct. ( #1802 )
...
* Add missing texturePitchAlignment member to the hipDeviceProp_t struct.
* Add missing hipDeviceAttributeTexturePitchAlignment enumerator to the hipDeviceAttribute_t enum.
* Initialize texturePitchAlignment to 256. This works for gfx9+, but is technically overaligned in most cases for pre-gfx9.
* Add the texturePitchAlignment property to the NVCC path.
2020-01-27 16:37:00 -08:00
Evgeny Mankov
a005a8550d
[HIP] Unify hipError_t (Step 3): Sync nvcc path ( #1778 )
...
* [HIP] Unify hipError_t (Step 3): Sync nvcc path
* [HIP][fix] Add CUDA 10.x support to nvcc path
2020-01-10 13:47:18 +05:30
Rahul Garg
a5d7e7d8d3
Add hipBindTexture2D on NVCC path ( #1773 )
2020-01-06 12:33:50 +05:30
Evgeny Mankov
0dadb23327
Merge pull request #1759 from emankov/master
...
[HIP] Unify hipError_t (Step 2)
2019-12-30 19:21:09 +03:00
Evgeny Mankov
4921678b6c
[HIP] Clean-up deprecated HIP error codes
...
hipErrorMemoryAllocation -> hipErrorOutOfMemory
hipErrorInitializationError -> hipErrorNotInitialized
hipErrorMapBufferObjectFailed -> hipErrorMapFailed
hipErrorInvalidResourceHandle -> hipErrorInvalidHandle
2019-12-23 17:01:35 +03:00
Alex Voicu
75a11330aa
Fix late-coming issues. ( #1724 )
...
Implementation for hipMemcpyWithStream.
2019-12-23 19:11:24 +05:30
Rahul Garg
e53fc316f1
Revert - Changes related to hipMemcpyWithStream ( #1718 )
...
Reverting #1673 , #1697 and #1707 .
Support for hipMemcpyWithStream and memcpy optimizations, will be brought in again once issues seen with these are resolved independently.
2019-12-06 09:51:53 +05:30
Alex Voicu
5a1f823739
General sync memcpy improvements. Add hipMemcpyWithStream ( #1673 )
...
* General sync memcpy improvements. Add `hipMemcpyWithStream`
* Update hip_memory.cpp
2019-11-20 21:36:37 +05:30
Rahul Garg
e39d7497ec
Fix gcc build on NVCC path ( #1661 )
...
* Fix gcc build on NVCC path
* Fix CI build errors
* [dtest] Fix texture and surface obj2D tests
2019-11-18 12:19:22 +05:30
Anusha Godavarthy Surya
259d8b4cdf
Merge branch 'master' into tex_unbind_issue_fix
2019-10-25 15:36:55 +05:30
Anusha Godavarthy Surya
ce04bdaa1a
Fixed CI build failure
2019-10-25 12:21:41 +05:30
Evgeny Mankov
28c23a7b1a
[HIP] Fix typo in a comment
2019-10-11 15:20:58 +03:00
Evgeny Mankov
337b7ce06a
[HIP][fix] Prefix libraryPropertyType to fix build of rocFFT and TensorFlow
2019-10-11 15:18:08 +03:00
Evgeny Mankov
94eb4155dd
[HIP] Introduce library_types.h as a common header for libs ( #1509 )
...
* [HIP] Introduce library_types.h as a common header for libs
[Reason]
Currently, hipFFT, hipBLAS and other HIP libs use their own data types, prefixed with HIPFFT or HIPBLAS, whereas in CUDA those types are common and declared in library_types.h
[TODO]
Switch hipFFT, hipBLAS and other HIP libs to use common library_types.h.
* [HIP] Move include for library_types.h to hip_runtime.h
[Reason]
Repeat CUDA's behaviour, where library_types.h is included in cuda_runtime.h
2019-10-10 19:57:28 +05:30
Philip Salzmann
9ababa4276
Fix uninitialized var in hipDeviceGetAttribute ( #1497 )
...
This fixes the usage of an uninitialized cdattr variable in hipDeviceGetAttribute for the CUDA backend when taking the switch default, as detailed in #1317 .
Note that the directed_tests/runtimeApi/device/hipGetDeviceAttribute.tst test fails for me, but it already did before applying this patch. Let's see what CI says!
2019-10-04 13:39:19 +05:30
ansurya
ba9c6e13e4
Added new Memory API's ( #1399 )
...
Added new memory API's hipMemAllocPitch, hipMemAllocHost, hipMemsetD16, hipMemsetD16Async, hipMemsetD8Async
Modified to support all scenarios hipMemcpyParam2DAsync, hipMemcpyParam2D.
2019-10-04 13:36:31 +05:30
Sarbojit2019
0fa42af08c
[HIP] Add tccDriver info in hipDeviceProp
...
Fixes #1433 .
2019-09-26 13:53:33 +05:30
ansurya
ceb734b917
Added new device attributes ( #1377 )
...
* Added new device attributes
* updated comment
* updated with new device attributes supported
2019-09-16 08:31:30 +00:00
Sarbojit2019
0722704f35
Updated hipErrorString and CUDAErrorTohipError ( #1365 )
2019-08-29 01:02:59 +00:00
Sarbojit2019
5c4f78bac3
[HIP] Reclaiming hipLaunchKernel API ( #1353 )
...
* [HIP] Reclaiming hipLaunchKernel API
* Reclaiming hipLaunchKernel : Incorporated review comments
* Incorporated review comments
* Removed hipLaunchKernel Macro from nvcc path
2019-08-29 01:02:41 +00:00
Sarbojit2019
84de192c9b
Compilation failure on nvcc path when using hipChannelFormatKind ( #1345 )
...
Fix for github #1183 issue reported
2019-08-21 10:01:03 +00:00
Rahul Garg
2405621f62
Add hipMemcpy3DAsync ( #1320 )
...
* Add hipMemcpy3DAsync
* Fix CI build error
* Move back stream resolution to internal function
* Remove stream redefinition and check
2019-08-16 02:13:16 +00:00
Sarbojit2019
b2fc64cc39
[HIP] Fix for hipArray_t failure on nvcc path
...
Fixes SWDEV-148407
2019-08-14 11:30:06 +00:00
Rahul Garg
45b73e0961
Add hipMemcpyParam2DAsync ( #1296 )
...
* Add hipMemcpyParam2DAsync
* Add NVCC path changes
* Clean up
* Fix build issue
* Fix else use in both sync and async apis
2019-08-09 11:50:37 +00:00
Rahul Garg
6ce86f409d
Add support for hipFuncGetAttribute ( #1279 )
...
* Add support for hipFunGetAttribute
* Support NVCC path
* Test using sample module_api_global
* Try fixing CI build failure due to hip_prof_gen scan
* Fix for CI build issue
* Resolve conflict
* Rebase and resolve conflicts with master
* Fix build error
* Fix NVCC path build error
2019-08-08 08:27:41 +00:00
Maneesh Gupta
3ec381d729
[nvcc] Populate missing fields in hipGetDeviceProperties
...
Change-Id: Ie90e02674d503e385f144f1ead3d53ff7b49cecc
2019-08-01 13:16:39 +05:30
ansurya
8e496c09d9
Add Max Texture 1D,2D,3D device properties ( #1226 )
...
* Add Max Texture 1D,2D,3D device properties
* Corrected testcase to use enums defined in hipDeviceAttribute_t
* Added texture 1D,2D and 3D support for NVIDIA path
2019-07-18 03:18:50 +00:00
Jannik
2a1b0ba27d
Fix call to cuda library ( #1197 )
...
* Remove flags parameter from hipOccupancyMaxPotentialBlockSize
This commit makes the hipOccupancyMaxPotentialBlockSize method consistent with hcc path and the CUDA API.
2019-07-04 00:43:22 +00:00
Evgeny Mankov
eede980a39
[HIP] fix typo in #1127
2019-05-22 20:48:18 +03:00
Evgeny Mankov
47bbb9c605
[HIP] fix nvcc path break in #1127
2019-05-22 20:04:45 +03:00
Evgeny Mankov
8f059b0ee9
[HIP][HIPIFY] Make hipMemcpyParam2D coherent with cuMemcpy2D
...
+ Makes hip_Memcpy2D struct compatible with CUDA_MEMCPY2D struct
+ Add hipMemcpyParam2D support in nvcc fallback path
+ Update hipify-clang, tests and docs accordingly
2019-05-22 18:31:39 +03:00
Rahul Garg
e906bd69ce
Fix symbol address issue on NVCC path
2019-05-07 03:59:43 +05:30
Maneesh Gupta
2975221560
Merge pull request #1039 from gargrahul/fix_ptrgetattr_nvcc
...
Fix hipPointerGetAttributes for NVCC
2019-04-24 16:50:18 +05:30
Rahul Garg
2bc2c46d4d
Add hipMallocManaged default functional support ( #1036 )
...
* Add hipMallocManaged default functional support
* Fix build error
* Add dtest
2019-04-24 16:50:03 +05:30
Rahul Garg
69a3d6b72a
Fix hipPointerGetAttributes for NVCC
2019-04-23 03:22:25 +05:30
Steven Noonan
ee750d5ea4
nvcc_detail/hip_runtime_api.h: add missing hipDeviceSetCacheConfig API
...
Signed-off-by: Steven Noonan <steven@uplinklabs.net >
2019-03-06 11:21:36 -08:00
Maneesh Gupta
8db717c769
Update hip_runtime_api.h
...
Use hipCUResultTohipError instead of hipCUDAErrorTohipError in hipMemsetD32 & hipMemsetD32Async.
2019-03-05 12:10:01 +05:30
Wen-Heng (Jack) Chung
5cbd28f29b
Address code review comments to use hipDeviceptr_t
2019-03-05 05:51:05 +00:00
Wen-Heng (Jack) Chung
0337b686ef
Add implementation for NVCC path
2019-03-04 20:11:12 -08:00
Michael Kuron
999b62b711
Fix hipGetSymbolAddress/hipGetSymbolSize on nvcc
2018-11-15 09:48:00 +01:00
Michael Kuron
73616582d6
Implement hipGetSymbolAddress and hipGetSymbolSize
2018-11-04 10:39:34 +01:00
Maneesh Gupta
c24b06fa0a
Merge pull request #703 from mangupta/stream_create_with_priority
...
Implementation for stream priority
2018-10-17 10:53:43 +05:30
Maneesh Gupta
64d1cf86b7
Add missing hipHostRegister flags on nvcc path
...
Change-Id: I69f09204d9c544935104d4168ab8d3626666a623
2018-10-15 15:30:24 +05:30
Maneesh Gupta
da64156fb2
Implementation for stream priority
...
- Requires ROCm 1.9.x or higher
- Requires HCC with PR#886 merged
Change-Id: Id7c95ea091ee610e80c9ad815f1cb989cba570ca
2018-10-05 16:27:46 +05:30
Maneesh Gupta
cef5261fa9
Add mappings for __clock* in nvcc_detail/hip_runtime.h
...
Change-Id: Ibcecf52f3e69298268d921efc036090544fa0ed0
2018-09-17 15:23:30 +05:30
Maneesh Gupta
4aef1351fc
Merge pull request #563 from gargrahul/add_gettexrefoffset_nvcc
...
Add hipGetTextureAlignmentOffset and hipGetChanDesc on NVCC path
2018-07-11 15:01:20 +05:30
Maneesh Gupta
65e82f785d
Merge branch 'master' into add_bindtextoarrayref_overload_api
2018-07-11 12:55:49 +05:30
Maneesh Gupta
583b6b270a
Merge pull request #549 from gargrahul/correct_bindtex_syntax_nvcc
...
Corrected enum type for TextureReadMode
2018-07-11 12:52:50 +05:30
Rahul Garg
6bf979d9e6
Added hipGetChanDesc for NVCC path
2018-07-11 12:37:07 +05:30
Rahul Garg
c93f216fe8
Add hipGetTextureAlignmentOffset on NVCC path
2018-07-11 12:17:33 +05:30