Rahul Garg
0aa4468ac3
Added hipDeviceGetByPCIBusId in hip/hcc path
...
Change-Id: I3cca0dc533d0281689d8a407c7da16ca1ba6a3a8
[ROCm/hip commit: 2d15d0741c ]
2016-11-01 10:57:48 +05:30
Ben Sander
22b87992cf
Print short hipLaunchKernel correctly.
...
Change-Id: I6ca03d7c707cd03d6982199830213953d5855f17
[ROCm/hip commit: 024d9ab090 ]
2016-10-27 23:09:32 -05:00
Ben Sander
2cfd770f1b
Add initial hipProfileStart/Stop
...
And modify sample to show how to use.
Still needs some work to understand interaction with CXL.
Change-Id: I2579824d2dd7863ea23874d34f0dabb3cb305d3e
[ROCm/hip commit: bb58f4f6fc ]
2016-10-27 23:09:32 -05:00
Ben Sander
9022f04992
Add two levels of HIP_PROFILE_API (1=short,2=long)
...
Change-Id: I7ef98589f8731fb879db109fd573c62b489f2b61
[ROCm/hip commit: ef8eac9b66 ]
2016-10-27 23:09:31 -05:00
Ben Sander
591f91f2da
Fix scoped marker so begin/end ATP timestamps correct
...
Change-Id: Ic944d3fc00d7bc31b756c0e6c327b99eb489537e
[ROCm/hip commit: ab1836544a ]
2016-10-27 23:09:31 -05:00
Ben Sander
0845025a21
Rename HIP_ATP_MARKER and profiling vars
...
HIP_PROFILE_API
HIP_DB_START_API
HIP_DB_STOP_API
Change-Id: I6c4da67212ff8217e6356a2622d4c6278a188c34
[ROCm/hip commit: e9056798f6 ]
2016-10-27 23:09:31 -05:00
Ben Sander
6972e6d87a
Allow HIP_DB to be number or string flags (ie HIP_DB=api+mem+sync)
...
Add callbacks for processing env vars.
Change-Id: I4ddf50e2da56b1dae43f50657bc693b07b23c03d
[ROCm/hip commit: f5e8090f2f ]
2016-10-27 23:09:31 -05:00
Ben Sander
770ae2611f
Add HIP_PROFILE_START_API, HIP_PROFILE_STOP_API
...
Refactor HIP_INIT_API to call recordApiTrace.
Change-Id: Ieff4b5018236f59e49e1b9841474440a34f821df
[ROCm/hip commit: 710be682ca ]
2016-10-27 23:09:31 -05:00
Ben Sander
494239ad61
Add per-thread API seqnum to debug
...
Change-Id: Ib13733a3e84cd56bae13a32bae40f936c20b7543
[ROCm/hip commit: 739bc37503 ]
2016-10-27 23:09:31 -05:00
Ben Sander
04691cdff8
Don't call allow-access if allocating device's only peer is self.
...
Change-Id: Iac58e6c3e460675833f10b1e8b2e393de223654d
[ROCm/hip commit: 354091f357 ]
2016-10-27 23:09:31 -05:00
Ben Sander
a27124c1f6
Improve HIP TID printing in debug mode.
...
Map long thread-id to a short one that is printed with each message.
Remove clunky stirng creation code for tid_tr.
Print TID on every message.
Change-Id: I780a91d8ce789cb4957789036b478bf5cde8c4e4
[ROCm/hip commit: 346c519ace ]
2016-10-27 23:09:31 -05:00
Aditya Atluri
84d64ef382
reverted change for cache size query
...
Change-Id: I44a1f43818cd287a2a3b6265f43d183f9bd5b71c
[ROCm/hip commit: e1c1b4c009 ]
2016-10-25 11:03:35 -05:00
Aditya Atluri
8580bba30c
correct cachesize to output correct value
...
Change-Id: I5db031591eb718b0c12e78a35e4b19349de9526d
[ROCm/hip commit: 820a914b98 ]
2016-10-25 09:33:45 -05:00
pensun
9f4cb7d4de
Add workaround for hipStreamAddCallback function: call stream synchronize on host and then add execute the call back function
...
Change-Id: If361f8e053949904b19b9e09245d267f05e29f7b
[ROCm/hip commit: 1f11a9554e ]
2016-10-22 23:59:39 -05:00
Ben Sander
548a902c4b
Fix P2P for async
...
Also improve HIP debug message: Add more DB_COPY1 messages. memcpyStr,
expand HIP_DB bitmask.
[ROCm/hip commit: 203348ac9b ]
2016-10-20 10:02:23 -05:00
Rahul Garg
eb8bcfaebe
Quickfix for HCSWAP-60, support for hipHostMallocPortable
...
Change-Id: I2a4fcacea9d916ef222324fc9e9d8191f6dc12d0
[ROCm/hip commit: cd6eb7af78 ]
2016-10-20 10:44:30 +05:30
Ben Sander
56cc2e3deb
Add HIP_WAIT_MODE env var.
...
Also weaken cases where hipSetDeviceFlags returns hipErrorInvalidValue.
Change-Id: I7f113338be6fe498eaf1ab40fd0fd6b23849bb5e
[ROCm/hip commit: 000d75de95 ]
2016-10-18 22:27:16 -05:00
Ben Sander
02123ae867
Add hipDeviceSchedule* support to queue wait
...
Change-Id: Iffa7a356500b026f3737c3f5719ca9f62b10d855
[ROCm/hip commit: 261ff423e1 ]
2016-10-18 22:27:16 -05:00
Ben Sander
35801146d2
Remove some TODO items
...
Change-Id: I7e9de2e43a8584f8dc9ee6d45c8ed00ca465f591
[ROCm/hip commit: d21d3ec222 ]
2016-10-18 22:27:16 -05:00
Ben Sander
207ebc9482
Fix event flag detection.
...
Change-Id: I0b0ba66c2339021320fe3d7760fdad1a0490a76b
[ROCm/hip commit: 2239e99f60 ]
2016-10-18 22:27:16 -05:00
Ben Sander
7bd9ca471a
Update docs for event, review event TODO.
...
Change-Id: Iec491f9f22df163f01c0af6639fcbe33c81acdcc
[ROCm/hip commit: 61af94a555 ]
2016-10-18 22:27:16 -05:00
Ben Sander
c11b6f511b
Move some internal headers from "include/hip/" to src.
...
Change-Id: I7041bd5c803d9318979f4a7c1d658445c614691e
[ROCm/hip commit: 9315ac1a29 ]
2016-10-18 22:27:16 -05:00
Maneesh Gupta
dd60b971d1
src/*: Update copyright header
...
Change-Id: I455f5d0d12fe9cb39a3ba873bd22b4c25ed07cbf
[ROCm/hip commit: 8471682f26 ]
2016-10-15 22:55:22 +05:30
Ben Sander
a76cc1e850
Cleanup files from code review.
...
- Remove some stale code
- Update docs
- Correct define for __HIP_ARCH_HAS_GLOBAL_INT64_ATOMICS__
Change-Id: Ic5e3cdb8269b1c18f6d2693700b55e08c4d0080e
[ROCm/hip commit: c54220eca9 ]
2016-10-15 11:51:20 -05:00
Ben Sander
20b6547a91
Add code to use new HCC API accelerator_view::dispatch_hsa_kernel.
...
Disabed by default, can enable with USE_DISPATCH_HSA_KERNEL=1
Change-Id: I7a6ba76f2bada34952ed47f5335ce695fa2faea5
[ROCm/hip commit: 50e0a363ce ]
2016-10-14 23:46:29 -05:00
Maneesh Gupta
887ee3dbfe
Remove incorrect executable-bit from non-executable files
...
Change-Id: Iacc434374721e01f7d75d0ab54bceabe0b337f54
[ROCm/hip commit: 6a14f39f8b ]
2016-10-14 12:53:13 +05:30
Aditya Atluri
5473ffc169
changed hipLimit to hipLimit_t and data type to enum
...
Change-Id: I94f408cdcac4b0bb38801d58709b68e9630d44d0
[ROCm/hip commit: 00c3db0e60 ]
2016-10-13 15:13:11 -05:00
Aditya Atluri
d06509f680
added compiler flag for polaris
...
Change-Id: Ib14c14c0618982ac7b48f5bc704c04b54ff40ed9
[ROCm/hip commit: 90a71c4be4 ]
2016-10-13 14:16:48 -05:00
Ben Sander
252e32859e
Fix HIP_USE_PRODUCT_NAME detection.
...
Change-Id: I6879ec3a11845bea66a18a9328bd4eaf54713420
[ROCm/hip commit: 89012201c9 ]
2016-10-13 11:51:53 -05:00
Ben Sander
17c3b3dd07
fix file-not-found detection
...
Change-Id: Ida84923ed18b3ebf8ffcfd6ee84d8a72f611ecd3
[ROCm/hip commit: fa075091b5 ]
2016-10-13 11:43:49 -05:00
pensun
7b8e824779
Add ifdef guard for the feature requires ROCm1.3
...
Change-Id: I7154517c47000c37fe5eb09a3c1cf2a9aacbe27c
[ROCm/hip commit: b70409f3ad ]
2016-10-13 10:57:31 -05:00
Aditya Atluri
d89712028a
added constant memory property to 16KB
...
Change-Id: If067b4057c2e3fc0c26cf4604a1d4fac7f139b12
[ROCm/hip commit: 237837d9bd ]
2016-10-13 10:47:40 -05:00
pensun
9544b72d94
Change to query device name using HSA_AMD_AGENT_INFO_PRODUCT_NAME;
...
Note: this commit depends on ROCR runtime in ROCm 1.3 release.
Change-Id: I90385ef6d11ee8a1e8adae1d3fdf21747347544c
[ROCm/hip commit: c3f375327f ]
2016-10-12 20:01:30 -05:00
Aditya Atluri
ef0cb7d619
Added hipDeviceGetLimit api
...
1. hipDeviceGetLimit API for HCC path is added
2. Test for hipDeviceGetLimit API is added
3. The feature added only supports querying heap size
4. Corrected indents for malloc and free device functions
5. Removed redundant data structures
6. Added g_heap_malloc_size to store the heap size
Change-Id: If48d1b0ce9270e994f1c542cc283ddbb14746bbb
[ROCm/hip commit: 62ec53740c ]
2016-10-12 19:58:48 -05:00
Aditya Atluri
c75674e24c
changed copyright to appropriate format
...
Change-Id: I81488eb21243fd9dc9106290c06afaf65152b2ab
[ROCm/hip commit: 7cd6ae9ff4 ]
2016-10-12 19:14:17 -05:00
Aditya Atluri
6591712299
added malloc and free device functions
...
1. Added malloc and free device functions
2. Added test which check malloc and free functions
TODO: Need to add support for multiple device. Works only on one device (multi device support id NOT available).
Change-Id: Id11fc36463915d6ad46c264d5a20c8feb2d2c17c
[ROCm/hip commit: d24a7ef12b ]
2016-10-12 19:08:34 -05:00
Aditya Atluri
62e25cc961
added more changes to memcpytosymbol
...
1. Refactored code to use HCC internal APIs rather than HCC copy APIs
2. Added hipMemcpyToSymbolAsync
3. Added test for hipMemcpyToSymbolAsync
4. Added new error hipErrorInvalidSymbol
Change-Id: I0e359b2d0ff5d682bbccdf9c2923e16b35e39497
[ROCm/hip commit: 3c4af7c371 ]
2016-10-11 13:29:46 -05:00
Aditya Atluri
3cddc50058
Added feature for memcpy to Symbol
...
1. Currently works only for __attribute__((addrspace(1))
2. Need to pass in string for name of the variable
3. Added test to check functionality
Change-Id: I4c3cc1bf151cb5423e4aef59fcc4ad5693b31641
[ROCm/hip commit: 6952b59401 ]
2016-10-11 12:09:58 -05:00
Aditya Atluri
cb75432ac4
added threadfence feature for hcc
...
1. Added feature for __threadfence and __threadfence_block
2. Added feature for using LLVM IR files directly while compilation
3. Added test for threadfence and threadfence_block
Change-Id: Ib7e5d89b4cca1a135952b317e5809cd05b56a3c9
[ROCm/hip commit: dc1042ce6d ]
2016-10-10 15:29:50 -05:00
Maneesh Gupta
eebcf24ee0
Add back deprecated hipHostAlloc, hipMallocHost, hipFreeHost
...
Change-Id: Ib8494078c852b07e1958c3acc21fa1866542122c
[ROCm/hip commit: 7c943ef20a ]
2016-10-09 16:30:46 +05:30
Elias Konstantinidis
7d0d42712e
Added support for __mul24 and __umul24
...
[ROCm/hip commit: 2bc541e15f ]
2016-10-06 09:29:36 +05:30
Ben Sander
bb3ce0631d
Add DISABLE_COPY_EXT option.
...
[ROCm/hip commit: dee364cb08 ]
2016-10-05 12:18:42 -05:00
Ben Sander
dda8fb6596
Don't save error status on ihip function.
...
[ROCm/hip commit: b4a783efa1 ]
2016-10-05 12:18:42 -05:00
Ben Sander
cc0dab0113
Add HIP_BLOCKING_SYNC environment var to control stream sync behavior.
...
[ROCm/hip commit: 821080487a ]
2016-10-05 12:18:42 -05:00
Maneesh Gupta
fc58842fcf
Move include/* to include/hip/*
...
Change-Id: I7a7b2839b4df59c7a4c503550f99fdc9e45c0f54
[ROCm/hip commit: b951cc99ed ]
2016-10-04 22:17:18 +05:30
Ben Sander
7fc988bc45
Refactor asyncCopy and syncCopy to fix deadlock case.
...
- Minimize time that locks are held.
- Eliminate copy code that locked stream and ctx at same time.
- Stream was locked to ensure thread-safe enqueue to the queue.
- Devices were locked to query peer-lists.
Change-Id: Ibe8880bb7fb995a3da8f90ff911f212d81525018
[ROCm/hip commit: 4ff6dc8f38 ]
2016-09-27 15:45:40 -05:00
Ben Sander
7f7340fb29
Add debug option to print ThreadID with each message.
...
Also print messages with single fprintf to prevents threads from
interleaving.
Change-Id: Ib3999fe6b1e67b4a16cd7dcde82f3dfc99dd48ff
[ROCm/hip commit: 6de9136002 ]
2016-09-27 15:45:40 -05:00
Aditya Atluri
92dff2234f
Fixed hipDeviceGetAttribute
...
1. Added negative test for hipDeviceGetAttribute
2. Fixed hipDeviceGetAttribute if int ptr input is null
Change-Id: I0e31f50fa407701fddf96e4eb64a87a371ff5d95
[ROCm/hip commit: 5b45c97a30 ]
2016-09-27 13:33:42 -05:00
Aditya Atluri
9dd52d97eb
added more device negative testing
...
1. Added fallback for nullptr to hipGetDeviceProperties and hipGetDeviceCount
2. Added negative tests for hipGetDeviceProperties and hipGetDeviceCount
Change-Id: Iac93fd53d7d4794fb10546ddadf6ca802b047c87
[ROCm/hip commit: 1b14393a85 ]
2016-09-27 13:04:35 -05:00
Aditya Atluri
55dc5b12e8
fallthrough if deviceId pointer is null
...
Change-Id: I924996d60d0286a7be1d18881ee733459de2981c
[ROCm/hip commit: 3e64222184 ]
2016-09-27 11:47:58 -05:00