Rahul Garg
81c91f5b0b
Added hipDeviceGetByPCIBusId in hip/hcc path
...
Change-Id: I3cca0dc533d0281689d8a407c7da16ca1ba6a3a8
2016-11-01 10:57:48 +05:30
Evgeny Mankov
e1812a1319
[HIPIFY] wrap kernel name with HIP_KERNEL_NAME macros...
...
only in case of commas in it.
2016-10-28 20:05:51 +03:00
Evgeny Mankov
3101c26d14
* [HIPIFY] Initial Profiler support.
...
CUDA Driver API porting to HIP:
+ cuProfilerStart, cuProfilerStop.
- cuProfilerInitialize & cudaProfilerInitialize - unsupported yet by HIP.
2016-10-28 18:32:13 +03:00
Ben Sander
9edaf0e3f7
add hip_profile.h
...
Change-Id: Id43a4336db53567020584cb7842baf5c1649fd8e
2016-10-28 07:08:46 -05:00
Maneesh Gupta
c26f5d7d5a
hipdemangleatp: Try handling HC kernels as well
...
Change-Id: Ie438ddd28e5bc6067fcd682df849d3183046b40a
2016-10-28 15:46:59 +05:30
Ben Sander
3d0fa30183
Print short hipLaunchKernel correctly.
...
Change-Id: I6ca03d7c707cd03d6982199830213953d5855f17
2016-10-27 23:09:32 -05:00
Ben Sander
18dbafe6e8
Add initial hipProfileStart/Stop
...
And modify sample to show how to use.
Still needs some work to understand interaction with CXL.
Change-Id: I2579824d2dd7863ea23874d34f0dabb3cb305d3e
2016-10-27 23:09:32 -05:00
Ben Sander
08c08d6f9c
show how to use variety of HIP_PROFILE features
...
Change-Id: I6edd66ac4c068b64e1dc3787d7f1f69ab3238469
2016-10-27 23:09:32 -05:00
Ben Sander
1d5034f583
Add two levels of HIP_PROFILE_API (1=short,2=long)
...
Change-Id: I7ef98589f8731fb879db109fd573c62b489f2b61
2016-10-27 23:09:31 -05:00
Ben Sander
e57baf8d95
HIPCC adds paths to profiler include and libs by default.
...
Users who desire otherwise can set HIP_ATP_MARKER=0.
Also remove old unused hipcc_explicit_lib option.
Change-Id: I2bf07ba880329e7a3b1365dd33a3b2be6794370f
2016-10-27 23:09:31 -05:00
Ben Sander
5b7da93e61
Add new hipdemangleatp and snapshot sample update for new functionality
...
Change-Id: Ie19c683b2b0bdfeb0c3fcf89444c2e21b7f606e7
2016-10-27 23:09:31 -05:00
Ben Sander
90adf98a7e
Fix scoped marker so begin/end ATP timestamps correct
...
Change-Id: Ic944d3fc00d7bc31b756c0e6c327b99eb489537e
2016-10-27 23:09:31 -05:00
Ben Sander
f7c42efa3f
Rename HIP_ATP_MARKER and profiling vars
...
HIP_PROFILE_API
HIP_DB_START_API
HIP_DB_STOP_API
Change-Id: I6c4da67212ff8217e6356a2622d4c6278a188c34
2016-10-27 23:09:31 -05:00
Ben Sander
caf446fe53
Allow HIP_DB to be number or string flags (ie HIP_DB=api+mem+sync)
...
Add callbacks for processing env vars.
Change-Id: I4ddf50e2da56b1dae43f50657bc693b07b23c03d
2016-10-27 23:09:31 -05:00
Ben Sander
3132c36471
Add HIP_PROFILE_START_API, HIP_PROFILE_STOP_API
...
Refactor HIP_INIT_API to call recordApiTrace.
Change-Id: Ieff4b5018236f59e49e1b9841474440a34f821df
2016-10-27 23:09:31 -05:00
Ben Sander
45e2dd4d69
Add per-thread API seqnum to debug
...
Change-Id: Ib13733a3e84cd56bae13a32bae40f936c20b7543
2016-10-27 23:09:31 -05:00
Ben Sander
f8b356dce8
Don't call allow-access if allocating device's only peer is self.
...
Change-Id: Iac58e6c3e460675833f10b1e8b2e393de223654d
2016-10-27 23:09:31 -05:00
Ben Sander
7d69e858a5
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
2016-10-27 23:09:31 -05:00
Ben Sander
03caa1de8a
Update docs and improve hipcc error message.
...
Change-Id: I25636d06959d02cc46c8c476d3948e91ff83ea47
2016-10-27 23:09:31 -05:00
pensun
dcdb7f6c68
Add missing hipStream typedef for NV path
...
Change-Id: I915cd14a9ff32b55b0121062d7804a7fbbdc3341
2016-10-27 13:34:14 -05:00
pensun
ee126928b1
Remove extra semicolons and extra spaces in header on NV path
...
Change-Id: Ib33aec2451a4e0b298d537dbb1b9df000405871b
2016-10-25 15:29:52 -05:00
Aditya Atluri
8145e1b129
reverted change for cache size query
...
Change-Id: I44a1f43818cd287a2a3b6265f43d183f9bd5b71c
2016-10-25 11:03:35 -05:00
Aditya Atluri
e28f65604b
correct cachesize to output correct value
...
Change-Id: I5db031591eb718b0c12e78a35e4b19349de9526d
2016-10-25 09:33:45 -05:00
Maneesh Gupta
5b4127abda
hip_hcc package: install hip_ir.ll to lib folder
...
Change-Id: Ieaa4ff83597c211f221b4c1b0b93e08ad7c92ea6
2016-10-25 15:42:24 +05:30
Maneesh Gupta
2d9ff6acd6
hipcc: Turn back linking hip_ir.ll by default
...
Change-Id: I9cec5a1a5a4791eddf6ef3e3332143ffc3ceadb6
2016-10-25 12:26:54 +05:30
pensun
4a93beb3b0
Modify hipStreamAddCallback test case to consider both NULL stream and stream
...
Change-Id: I8468c988f0f01c7d3f3176a01469d69bf7a68237
2016-10-23 12:36:02 -05:00
pensun
ad09270d7b
Add direct test for hipStreamAddCallback workaround
...
Change-Id: I890574eb30a76922888846882986edd0dc345309
2016-10-23 12:18:09 -05:00
pensun
7a0375854a
Add workaround for hipStreamAddCallback function: call stream synchronize on host and then add execute the call back function
...
Change-Id: If361f8e053949904b19b9e09245d267f05e29f7b
2016-10-22 23:59:39 -05:00
Aditya Atluri
c39b40db58
changed docs to update support for memcpyToSymbol
...
Change-Id: I63169cb10e64033a92dafd46930f499cdf145a8d
2016-10-20 14:05:43 -05:00
Evgeny Mankov
4831ac9f7e
[HIPIFY] Fix typo in option's help description
2016-10-20 18:57:52 +03:00
Evgeny Mankov
d9b2ed07c3
[HIPIFY] Add missing options to tool's -help
...
Also HelpMessage with a description of the common command-line options related to the compilation database and input files is added.
2016-10-20 18:29:24 +03:00
Ben Sander
714968cdc6
Fix P2P for async
...
Also improve HIP debug message: Add more DB_COPY1 messages. memcpyStr,
expand HIP_DB bitmask.
2016-10-20 10:02:23 -05:00
Aditya Atluri
3a1c8f9259
Added support for constant memory
...
1. Added support for constant memory
2. Added test which uses memcpytosymbol for constant memory
3. Corrected code error on nvcc path
Change-Id: I2ab69f516832bf7a037132ac81273ea6f5107401
2016-10-20 09:57:53 -05:00
Rahul Garg
b4702f3912
Quickfix for HCSWAP-60, support for hipHostMallocPortable
...
Change-Id: I2a4fcacea9d916ef222324fc9e9d8191f6dc12d0
2016-10-20 10:44:30 +05:30
Sandeep Kumar
d025ed980b
Add more apps to 2_Cookbook
...
Change-Id: Iafe462df9726a32f450bd240a2de3eaa73a10057
2016-10-19 12:58:16 -04:00
Maneesh Gupta
5f2bf5219a
bin/hipcc: Simplify HIP_HCC_SYS_INCLUDES_WA logic
...
Change-Id: I2d20d6edc1b5c0d065ba6ce6179441fa98712a87
2016-10-19 12:57:33 +05:30
Maneesh Gupta
e1b658caff
Make directed tests linking depend upon HIP_PATH/lib/*
...
Change-Id: I35203fc655325428e241a541f64c103fb2004b6e
2016-10-19 12:41:11 +05:30
Ben Sander
965e2e00a8
Make HIP_HCC_SYS_INCLUDES_WA disable unless explicitly set =1
...
Change-Id: Ibfd1e049d51e420bd514b71e3652bc7029dfd4ba
2016-10-18 22:45:45 -05:00
Ben Sander
d4b23da91f
Add HIP_WAIT_MODE env var.
...
Also weaken cases where hipSetDeviceFlags returns hipErrorInvalidValue.
Change-Id: I7f113338be6fe498eaf1ab40fd0fd6b23849bb5e
2016-10-18 22:27:16 -05:00
Ben Sander
4acb7dd947
Several fixes/improvements to directed tests.
...
Change-Id: Ieb32569ddbf5795d2ab3392165a7ddc22693dc62
2016-10-18 22:27:16 -05:00
Ben Sander
c7303d5924
Add hipDeviceSchedule* support to queue wait
...
Change-Id: Iffa7a356500b026f3737c3f5719ca9f62b10d855
2016-10-18 22:27:16 -05:00
Ben Sander
0787c41ac0
Remove some TODO items
...
Change-Id: I7e9de2e43a8584f8dc9ee6d45c8ed00ca465f591
2016-10-18 22:27:16 -05:00
Ben Sander
214673a4fb
Fix event flag detection.
...
Change-Id: I0b0ba66c2339021320fe3d7760fdad1a0490a76b
2016-10-18 22:27:16 -05:00
Ben Sander
54b20dbe0d
Update docs for event, review event TODO.
...
Change-Id: Iec491f9f22df163f01c0af6639fcbe33c81acdcc
2016-10-18 22:27:16 -05:00
Ben Sander
7aef2b0eca
Enhance .gitignore
...
Change-Id: I03ae62bad2db181538a4487163ac604229862d16
2016-10-18 22:27:16 -05:00
Ben Sander
403cdf93c3
Move some internal headers from "include/hip/" to src.
...
Change-Id: I7041bd5c803d9318979f4a7c1d658445c614691e
2016-10-18 22:27:16 -05:00
Evgeny Mankov
5c7146eb62
[hipcc] A workaround for [SWDEV-105366] HCC's omitting of system includes while compiling kernel code leads to 'file not found' error.
...
Missing includes are set explicitly.
Workaround is switched on by default, to disable it set HCC_SYS_INCLUDES_WA=0.
WA will be removed after fixing [SWDEV-105366].
2016-10-18 22:38:04 +03:00
Aditya Atluri
9d7a82d6bf
make sure the global variable does not give zero
...
Change-Id: I299c4e74740e5df155a562b0ee609ac6539a9b28
2016-10-18 10:09:52 -05:00
Maneesh Gupta
5d710c8802
Update packaging scripts to handle updated HCC package versioning
...
Change-Id: Id93267b7cf9fd05e60004cc6c45b5fc7d10b3130
2016-10-17 12:48:05 +05:30
Maneesh Gupta
3c0327451d
Disable linking hip_ir.ll by default
...
Change-Id: I4917f0d75c66eee347de41bc16d999fc563a5be2
2016-10-16 11:14:42 +05:30