Graf commitů

1485 Commity

Autor SHA1 Zpráva Datum
Sarbojit Sarkar 6de0657b08 SWDEV-1 - cleanup
Change-Id: Ib50424c87cfc76317eb0c114b5dd3553d8ebd9eb


[ROCm/clr commit: e1f1e38d79]
2022-08-01 00:05:58 -04:00
Tao Sang 64b9f0a192 SWDEV-286739 - Support hipDeviceAttributeWallClockRate
Part 3: Add missing declaration of wall_clock64() to fix
compiling issue in device code.
Add querying hipDeviceAttributeWallClockRate.

Change-Id: Ie54771c2f58eeaacdc0248bc116ef193f99eb9b9


[ROCm/clr commit: 9f9fd859db]
2022-07-28 13:02:42 -04:00
Jaydeep Patel 2de8ca99ff SWDEV-338376 - CUDA VMM API mappings
Change-Id: I47595dbf57fcce352d23842dbbc2b98b4ec97fb5


[ROCm/clr commit: fa786c606a]
2022-07-27 02:35:13 -04:00
sdashmiz fc0d9521f2 SWDEV-347345 - add missing func for nvdia
Signed-off-by: sdashmiz <shadi.dashmiz@amd.com>
Change-Id: Ie2a70778d01948083d724a9d20e1f17541178ec5


[ROCm/clr commit: fefb9ae466]
2022-07-24 21:38:14 -04:00
haoyuan2 71bd9ac9b9 SWDEV-342896 - fix incorrect format setting
Change-Id: I1fa72eefa3b550d41db6a4cc0812771fb0035bdc


[ROCm/clr commit: b96ff76989]
2022-07-22 11:17:50 -04:00
Rakesh Roy 32292bb914 SWDEV-344135 - Enable stream ordered memory and mempool tests
- Implement CUDA mappings for stream ordered memory allocator and memory pool APIs

Change-Id: I2434118ff043527ec7c3389cd5175e1e21d032bf


[ROCm/clr commit: 9f4214b587]
2022-07-21 00:05:39 -04:00
sdashmiz f40f675a64 SWDEV-346448 - fix the missing defines
for nvdi compile

Signed-off-by: sdashmiz <shadi.dashmiz@amd.com>
Change-Id: Ifd0e50a6f8636609fa61680cc719a2f82fb1320c


[ROCm/clr commit: 4bac774783]
2022-07-20 11:31:50 -04:00
Ajay 56a71f18a2 SWDEV-327563 - catch2 deviceLib build failure
Change-Id: I82f95d61f64018a761e45dc8f424af032953fc51


[ROCm/clr commit: 9b18e404ae]
2022-07-15 21:11:20 -04:00
Brian Sumner 1d88a5df2c SWDEV-343278 - fix conversion functions
Change-Id: Ib93f886363314e980462ef562c998981bb958569


[ROCm/clr commit: a47887aa0d]
2022-07-15 16:00:58 -04:00
Brian Sumner 5a402b9c99 SWDEV-333033 - add safe and unsafe atomic min and max including gfx940 and add missing nvidia support
Change-Id: I829a0a5fd49c510e77eabbcb92d1a415ef6b5a4c


[ROCm/clr commit: 4375b9f5b9]
2022-07-14 10:22:42 -04:00
sdashmiz 024e1510b1 SWDEV-321698 - add new enum entries to match cuda
Signed-off-by: sdashmiz <shadi.dashmiz@amd.com>
Change-Id: If0a17b3234fd90b1f553a075e02280258000d36a


[ROCm/clr commit: 39dbf65782]
2022-07-13 10:22:06 -04:00
Ajay 39a8a1df8d SWDEV-345188 - hipamd: warnings treated as errors for catch tests
Change-Id: I8981a530da2e0213c60f7a81b09d9c36e27e9025


[ROCm/clr commit: 9eb45dd1e0]
2022-07-12 15:34:39 -04:00
Sarbojit Sarkar d9be7ebb3e SWDEV-341174 - Fixed typo
Change-Id: Ib605390bd17d014539d57488f0633db44d7c1fad


[ROCm/clr commit: 7d9dd78613]
2022-07-11 12:24:18 -04:00
Sarbojit Sarkar 3eb5628a49 SWDEV-345723 - Fixed test build issue
Change-Id: Id9545c9523bfad6b5afefcdc1f705d6043094ae4


[ROCm/clr commit: 2531854626]
2022-07-11 12:23:34 -04:00
Sarbojit Sarkar c9226df336 SWDEV-323441 - Phase-II : per thread default stream
Change-Id: I3c796ddaebcf0223d7faf50c425c1674de215f9d


[ROCm/clr commit: e9961fedd8]
2022-07-11 12:22:23 -04:00
Sarbojit Sarkar b81ab5b937 SWDEV-341174 - fixed warning on cuda
Change-Id: I5d017bcc154a2985e23893c0d933438bf0fc1958


[ROCm/clr commit: 5bd8f8dbe6]
2022-06-27 04:49:53 -04:00
Sarbojit Sarkar 86481e460d SWDEV-333073 - HIP_INIT_API to handle no return case
Change-Id: I78d43e88cc196047a4cb5d6fcf756339c0e46e80


[ROCm/clr commit: 1074b22c48]
2022-06-24 12:53:18 -04:00
Sarbojit Sarkar 743a82b77d SWDEV-331066- Added hipDeviceSetLimit
Change-Id: I4de099387ad34ca7c195588274b546649038e2aa


[ROCm/clr commit: 7f92a98a3c]
2022-06-21 06:06:05 +00:00
Maneesh Gupta 7e2c04a53b SWDEV-340918 - make hip_runtime.h work with g++
Change-Id: Ief3e6dc075837dfccae3defad7da696130ed05bd


[ROCm/clr commit: 2bd0cb523e]
2022-06-20 23:32:58 -04:00
jaypatel 8b4d8bdee4 SWDEV-322688 - Added hip math constants header.
Change-Id: I9363f82159a53c6822e943c4950fc7f6c350b326


[ROCm/clr commit: 8d464a2e83]
2022-06-16 23:56:45 -04:00
Satyanvesh Dittakavi 920ceab2db SWDEV-336532 - Convert Managed Memory in hipPointerGetAttributes on Nvidia platform
Change-Id: I3bc6180040b6ad48f06ffdc7d01ca6fd9fe32c0e


[ROCm/clr commit: f7d0850eb8]
2022-06-16 00:43:15 -04:00
Jaydeep Patel 770171bde8 SWDEV-338376 - Added hipMemGetAllocationGranularity, hipMemCreate and hipMemRelease for CUDA
Change-Id: If8c6a00958bb39752eb202c30a7960d13de225ae


[ROCm/clr commit: ab8583b4d5]
2022-06-15 23:59:56 -04:00
sdashmiz 57a0d997d3 SWDEV-325711 - add Graph memory APIs skeleton
- hipDeviceGet/SetGraphMemAttr

- hipDeviceGraphMemTrim

- there is no memory pool for graphs currently

Signed-off-by: sdashmiz <shadi.dashmiz@amd.com>
Change-Id: I11db76ea7ea1c7732175fc93264448052357e8dc


[ROCm/clr commit: e8194dca76]
2022-06-15 14:47:16 -04:00
sdashmiz 92f5d16599 SWDEV-321698 - remove Memcpy1D type
- Memcpy1D node type is not complying with cuda

Signed-off-by: sdashmiz <shadi.dashmiz@amd.com>
Change-Id: If8113f5e699de0c62d98effc4580a2e0fee9a950


[ROCm/clr commit: 13c875eaf0]
2022-06-13 08:31:02 -04:00
sdashmiz 3f588bf604 SWDEV-318833 - Get and Set attribute for kernel nodes
Signed-off-by: sdashmiz <shadi.dashmiz@amd.com>
Change-Id: Ie51aa4b56661cbb8c5b4eb1dbaad327377084ffb
Signed-off-by: sdashmiz <shadi.dashmiz@amd.com>


[ROCm/clr commit: efd2d55e9d]
2022-06-09 09:47:05 -04:00
Satyanvesh Dittakavi 8e9541dbbd SWDEV-334908 - Guard the __noinline__ macro as it is also supported as keyword by clang
Change-Id: I314b3ac463ea63132a5107f4f24ce769d8112b9b


[ROCm/clr commit: 8dfa7e7f98]
2022-05-18 05:51:32 -04:00
Tao Sang 1a9a5f9bfc SWDEV-319818 - Release restriction on hipResourceViewDesc
Let more types support hipResourceViewDesc.
Add missing symbols to fix cuda build failing.

Change-Id: Ife694cc6491427093863252e257e820b0bb4fa0f


[ROCm/clr commit: a19b767e8a]
2022-05-10 15:57:31 -04:00
Joseph Greathouse 693fa73f53 SWDEV-332811 - Clean up and extend HIP unsafe atomic add
Update HIP's unsafeAtomicAdd to:
 - Compile properly even when not compiling for gfx90a
 - Fall back to safe atomic add on non-gfx90a architectures
 - use flat atomic add for FP64 on gfx90a, instead of dynamically
   checking memory spaces.

In addition, when the compiler is passed -munsafe-fp-atomics, it
will define __AMDGCN_UNSAFE_FP_ATOMICS__. When this happens, the
compiler is requesting that the HIP headers force all HIP
atomicAdd() calls on floats or doubles to use their unsafe versions.

This patch thus causes unsafeAtomicAdd() calls when that define
is seen. This call to unsafeAtomicAdd() is also done for atomicSub(),
since that calls atomicAdd underneath. This is not done for
system-scope atomicAdd because, on gfx90a, system-scope atomic FP
add instructions would need to target fine-grained memory, which is
always unsafe.

This patch also creates safeAtomicAdd() functions for float and double.
These functions will create a standalone safe atomic, even when the
application is compiled with -munsafe-fp-atomics.

Finally, this patch adds wrappers in the Nvidia path of HIP so that
these HIP functions call through to atomicAdd there as well.

Change-Id: I8af0621d3d28ea30c9278bfeea7393d03bbdac6d


[ROCm/clr commit: f68149eafd]
2022-04-29 07:19:58 -04:00
Sarbojit Sarkar e22f2e1714 SWDEV-323441 - support for default stream per thread
Change-Id: I0032da0357f5cffbf5e4ec4a02435d2a128a262b


[ROCm/clr commit: fc1f02bbed]
2022-04-18 23:19:55 -04:00
Christophe Paquot c6ae81b2f2 SWDEV-322620 - Virtual Memory Management APIs
Adding skeletons.
Implemented:
- hipMemGetAllocationGranularity with basic granularity
- hipMemGetAllocationPropertiesFromHandle
- hipMemCreate

Change-Id: I4bd2c75fae45d6a057efcad19d1d3c9715e9ae67


[ROCm/clr commit: cd447a5aaa]
2022-04-08 11:38:51 -04:00
Rakesh Roy 2a3f5a5321 SWDEV-326789 - Mark texture reference APIs as deprecated
Change-Id: I7a39cc1f036cd185ac3aab6c5f44730f16225f69


[ROCm/clr commit: 5f0f7ffe92]
2022-04-05 00:04:34 -04:00
German Andryeyev e7d2493402 SWDEV-311271 - Initial mempool implementation
HIP_MEM_POOL_SUPPORT controls memory pool support in runtime.
Currently it's disabled by default. The initial change doesn't
include: IPC, MGPU, virtual memory alloc, suballoc, defragmentation,
internal dependencies.

Change-Id: Ibed8528ebec698b045ebb247e49c0ecd6e587ed7


[ROCm/clr commit: 539d264eb0]
2022-03-31 09:21:37 -04:00
Rakesh Roy 9372361b04 SWDEV-326789 - Add Missing HIP API Functions For Nvidia Platform
Change-Id: I828028c5d893ca1487f33017a6902c3b7f786762


[ROCm/clr commit: 1e77357c7f]
2022-03-25 01:34:57 -04:00
Satyanvesh Dittakavi 8524ca54bf SWDEV-317716 - Add hipDeviceGetUuid API
Change-Id: I320c7bc11ddd7617e0246f6faf19135ad7363e73


[ROCm/clr commit: 2fd90ec7a4]
2022-03-16 00:23:44 -04:00
Satyanvesh Dittakavi 0b4e48441e SWDEV-321656 - Address incorrect warp size with hiprtc
Change-Id: I97051d4e2cf27cb073c39663c62e43d5c19b1a12


[ROCm/clr commit: 3cc0a3fcaf]
2022-03-15 06:52:21 -04:00
Sarbojit Sarkar 81f8f73d00 SWDEV-323441 - New header for per-thread-default-stream
Change-Id: If74ea1464117abd2bfeadd543b94d26f9e934cbb


[ROCm/clr commit: 2b86f24fda]
2022-03-14 01:13:01 -04:00
haoyuan2 d85cb3b81d SWDEV-316128 - HIP surface API support
align with CUDA to support surf1DLayeredread/write,
surf2DLayeredread/write, surfCubemapread/write functions.

Change-Id: Ie3f6ca75e23accd97cb35cdc8362d88a1e5dbd54


[ROCm/clr commit: bed3995147]
2022-03-09 21:19:48 -05:00
Satyanvesh Dittakavi ba72e59817 SWDEV-315118 - Add version check for hipGraphInstantiateWithFlags on nvidia path
Change-Id: I672b4a5287348bddf6eb8955decc9cce786275a2


[ROCm/clr commit: 1524c9515e]
2022-03-09 02:10:08 -05:00
Shadi Dashmiz fc67e37d9a Revert "SWDEV-321698 - hipGraphNodeTypeMemcpy1D NVDIA build failure"
This reverts commit 42be9301d1.

Reason for revert: hip changes not in yet

Change-Id: I89e35d171cf01fb82d361279998efcc90e54ef33


[ROCm/clr commit: 1965dd5795]
2022-03-08 15:08:31 -05:00
sdashmiz 42be9301d1 SWDEV-321698 - hipGraphNodeTypeMemcpy1D NVDIA build failure
Signed-off-by: sdashmiz <shadi.dashmiz@amd.com>
Change-Id: I7aea11bf14adbeb7fea68eb862df74fcf6f13d75


[ROCm/clr commit: 74beb4583c]
2022-03-07 16:26:11 -05:00
Christophe Paquot 7052f1f5de SWDEV-323472 - Add hipThreadExchangeStreamCaptureMode
Also fix an issue in hip_prof_gen.py with GLenum.

Change-Id: Ib03fe9dae87b850c53b7d8aeb78b8dbdd01f794c


[ROCm/clr commit: 27f102b167]
2022-02-24 15:24:22 -05:00
Satyanvesh Dittakavi 17f228dcef EXSWCPHIPT-13 - Fix Segfault on Nvidia Platform
Change-Id: Ib85bb0b0e91b7703afc4858c4a5ada0115ad68f4


[ROCm/clr commit: f3f11f4c7d]
2022-02-19 12:53:46 +00:00
Satyanvesh Dittakavi 0d4a2c78c2 SWDEV-315981 - make nvidia hiprtc functions static
Change-Id: I945426c155ed9ce21c308745f384bbf8669d73c4


[ROCm/clr commit: aee5c48848]
2022-02-15 23:38:19 -05:00
Satyanvesh Dittakavi 97325ff303 SWDEV-314485 - Remove the older implementation of device-side malloc/free
Change-Id: I9ba3c6030a6dd7a5e064073d5c21223041282f61


[ROCm/clr commit: e5496b3159]
2022-02-15 07:49:56 -05:00
Satyanvesh Dittakavi 454021543d SWDEV-315118 - Add version checks for few graph APIs on Nvidia path
HIP apps running on CUDA 11.0 are failing due to some graph APIs/enums
added only in CUDA 11.1 or CUDA 11.3

Change-Id: I0d32b412cb76c42c7b3a9c612d750990f9e89908


[ROCm/clr commit: 087c0c25b2]
2022-02-15 02:03:49 -05:00
Satyanvesh Dittakavi ff620caa02 SWDEV-315017 - Add missing graph error strings
Change-Id: I11b5a623756c5bef88cbc93e49c124d0caf62bd1


[ROCm/clr commit: f371300933]
2022-02-15 01:41:44 -05:00
Satyanvesh Dittakavi f6ebe30931 SWDEV-317135 - Fix mapping of hipStreamUpdateCaptureDependencies on cuda path
Change-Id: Ibbcf8136fa527a20684a377311bc76182345d17b


[ROCm/clr commit: 9c31a738c2]
2022-02-14 09:10:46 -05:00
Sourabh Betigeri fc0eb2d8cd SWDEV-294375 - Declares fns() functions static
Change-Id: Ife0150b8d6b9531522e61a82df6b88af3282f437


[ROCm/clr commit: 7d8c63cc34]
2022-02-13 23:35:46 -05:00
haoyuan2 5a49e6a8d9 SWDEV-316128 - HIP surface API support
Change-Id: I5b98f86168e64b36588f5d7efb82191d895e27d7


[ROCm/clr commit: d7beddbfee]
2022-02-11 11:07:04 -05:00
Satyanvesh Dittakavi 556b1bbc69 SWDEV-314661 - Add hipGraphInstantiateWithFlags API mapping in nvidia path
Change-Id: Ibbf54ef18978448e92571f0535124844154726b6


[ROCm/clr commit: 0759f4ff81]
2022-02-09 00:02:55 -05:00