Ben Sander
16f818b60f
Remove HIP_STAGING_BUFFER
...
Code simplification/cleanup:
Remove stale fallback paths that uses something besides the unpinned engine.
Remove HIP_STAGING_BUFFER env var - now is const 2, 0 no longer has
special meaning.
Change-Id: I7d24cdd1067dd0c244e87b6a83897cb135d307e7
[ROCm/clr commit: 39750da9a5 ]
2016-09-22 14:21:18 -05:00
Ben Sander
25c24e1694
Fix bugs for different CopyModes
...
Change-Id: Ie59fb3b36a9ff2de178307a6d5756b5c71e0306b
[ROCm/clr commit: 271e2357e0 ]
2016-09-22 14:21:18 -05:00
Ben Sander
872c63b03a
Move isLargeBar to UnpinnedCopyEngine constructor.
...
Change-Id: I7a7d3a40b1d4e0c6ec856658a6a70e5e70d287ce
[ROCm/clr commit: 17d7fc586e ]
2016-09-22 14:21:18 -05:00
Ben Sander
435c528fd4
Refactor Staging Buffer CopyDeviceToHost
...
Use copyMode. Embed algorithm selection inside the unpinned class.
Change-Id: Ic75fd5931717a3160904402794bbed3ccd445112
[ROCm/clr commit: 77c86934c1 ]
2016-09-22 14:21:18 -05:00
Ben Sander
91b43c493b
Refactor staging buffer CopyHostToDevice.
...
- Move algorithm selection inside Unpinned class.
- Refactor function names.
- Use size_t for size threshholds.
Change-Id: Iac4de652ac9d49acbf527aa0849e388b8ecd8486
[ROCm/clr commit: e77d75c1c1 ]
2016-09-22 14:21:18 -05:00
Ben Sander
6b6b0d6b58
Updates docs for hipHcc* functions, move to header
...
[ROCm/clr commit: b4bc101c96 ]
2016-09-22 13:05:47 -05:00
Aditya Atluri
0862286458
Fixed typo in function return
...
Change-Id: I8905bfdbc162815ac10c926e77a9bab432932c9c
[ROCm/clr commit: c0babe6b0a ]
2016-09-22 09:30:05 -05:00
Rahul Garg
c121b8b535
Added hipRuntimeGetVersion function
...
Change-Id: I59ec2beacb5a94439deed0dcc8eb37d6de1cc900
[ROCm/clr commit: 86e441c769 ]
2016-09-22 15:21:23 +05:30
Rahul Garg
6d1d6b9cfb
Added return error code hipErrorInvalidValue in hipMemGetInfo
...
Change-Id: If01b012136b655ff8eb4878eb703dfe3e6a36530
[ROCm/clr commit: 8842a0d5b8 ]
2016-09-17 23:54:20 +05:30
Maneesh Gupta
d9488e163f
Updates to doxygen documentation for HIP Event APIs
...
Change-Id: Ic2e4a5725aebca14ac824da43436aacd0fe0a45c
[ROCm/clr commit: b14d2c8c8e ]
2016-09-16 15:06:54 +05:30
Rahul Garg
de2c138bd7
Partial updates of error codes for Memory APIs
...
Change-Id: If924867cc62f56dc9eaf81f5499ba66f417c393a
[ROCm/clr commit: cb3bff0a0d ]
2016-09-16 12:59:41 +05:30
Rahul Garg
b16b1fdda8
Added further properties in hipChooseDevice
...
Change-Id: I8f7f5800e8a95873318a534f09e75e037ad31b06
[ROCm/clr commit: 6139d5f587 ]
2016-09-16 11:18:34 +05:30
Aditya Atluri
29a9549a47
added more error codes to hipErrorGetString
...
Change-Id: I80c675905d94813502040fd0caa07985fa8c7dcc
[ROCm/clr commit: 6cb5a13a2b ]
2016-09-15 11:28:18 -05:00
Aditya Atluri
18756a8e91
added new error reporting case
...
Change-Id: I5f0a37dbe396412f5602d04df19d538e451c2696
[ROCm/clr commit: 2c12394d52 ]
2016-09-15 10:50:26 -05:00
Rahul Garg
75014fb837
Updated Doxygen related documentation for Error APIs
...
Change-Id: I16873503d8e96df91831e2a0503835a1ff0220e3
[ROCm/clr commit: c6808ddc0e ]
2016-09-13 16:54:46 +05:30
Aditya Atluri
7373e61507
Added async memcpy driver api
...
Change-Id: I90e8a078d668a408e79f9e1142e7534771467a4f
[ROCm/clr commit: c3ab5a8df8 ]
2016-09-09 10:21:52 -05:00
Maneesh Gupta
905a3a2211
Remove redundant API hipDeviceGetFromId from HCC path
...
Change-Id: Id6b4f1374b12cb3949d725f0859425cd8de6d868
[ROCm/clr commit: 0c56f707f0 ]
2016-09-09 12:06:19 +05:30
Aditya Atluri
a482dd2ae0
Added signal management which passes stress tests
...
Change-Id: I7e1660a8ca2c5ee580a91f76eae9a58ca49f0457
[ROCm/clr commit: 5845a2d8c6 ]
2016-09-08 14:52:51 -05:00
Rahul Garg
58ef4a1880
Removed return code related doxygen from hip_device src file
...
Change-Id: Iffe51b69dd6be064b7898d06e537a505e27edb0b
[ROCm/clr commit: 9ad1d2c39e ]
2016-09-08 23:12:12 +05:30
Rahul Garg
be1dd62dd7
Initial support for hipChooseDevice function
...
Change-Id: Iedbf5f98c96673ab701dd7539d80a77b994d296f
[ROCm/clr commit: 817bd7270f ]
2016-09-08 22:37:24 +05:30
Ben Sander
70a3ad883c
Adapt to _kernelSymbol
...
Change-Id: Idebb7d7e895286ce5423afdcf391e00fa8b2b94f
[ROCm/clr commit: 8022671a5e ]
2016-09-07 15:48:40 -05:00
Ben Sander
c75953a822
Add hipStreamQuery
...
Change-Id: Ib0813b1065feba4fe9ae861d24cfc6f9c5f580be
[ROCm/clr commit: fd67689114 ]
2016-09-07 15:18:34 -05:00
Ben Sander
c5f7fd723a
refactor ihipPreLaunchKernel phase#1
...
- Fix calls to HIP_INIT_API to pass all function arguments.
- Change ihipFunction to follow coding convention:
- leading underscore for member fields,
- camelCase for member fields.
- move kernel print function inside ihipPreLaunchKernel.
- add HIP_TRACE_API_COLOR, control color of messages.
- add ihipLogStatus wrapper to hipDeviceSynchronize()
Change-Id: I20bbb644da213f821404648945197254e3648fc9
[ROCm/clr commit: 745310399d ]
2016-09-07 15:18:34 -05:00
Aditya Atluri
a4934a7c66
Fixed group and private memory size to AQL
...
Change-Id: I6e721f63fe5697b7b90a7d25add9aa024d9dc429
[ROCm/clr commit: 26215c515d ]
2016-09-07 12:57:18 -05:00
Ben Sander
b47c7dc8aa
remove printf
...
Change-Id: I36510a7ff0425f05a6d0b9c65cda4397c9cc2d95
[ROCm/clr commit: 3c90766c70 ]
2016-09-02 17:50:31 -05:00
Ben Sander
f3da27cd5a
Fix double-lock of stream on hipModuleLaunchKernel
...
Change-Id: I4ca164971c25f4eb8fbcca11d6258367bb3d2ab4
[ROCm/clr commit: 0fdb5bf517 ]
2016-09-02 12:47:49 -05:00
Ben Sander
589f28547e
hipStreamWaitEvent update.
...
Add passed to hipStreamWaitEvent test.
Fix pointerAttrib test to work with new and old HCC versions.
Minor code touchup.
Change-Id: I139ba6ce9f6bf2b4bee89aebdec5981b4346ffc0
[ROCm/clr commit: 8e883ab666 ]
2016-09-02 09:46:59 -05:00
Ben Sander
98019e5f79
Only use ihipLogStatus from top-level HIP functions.
...
Change-Id: I07e9c088d5c16a79ed52cb008a798889a656016c
[ROCm/clr commit: 9ee9284306 ]
2016-09-02 09:46:59 -05:00
Ben Sander
fe85edad3f
Use create_blocking_marker for WaitEvent implementation
...
Change-Id: Ib3113f69a14e48b9fe0558d7b455148e478d8eed
[ROCm/clr commit: 9a99000a62 ]
2016-09-02 09:46:59 -05:00
Ben Sander
938933ca2f
Refactor for stream->_av.
...
- move _av into stream critical section. ( HCC accelerator_view is not
thread-safe but HIP steram is. )
- Refactored many places in code that need to acquire critical section.
some were previously thread races, ie enqueueing marker.
-remove support for GRID_LAUNCH_VERSION < 20
-Enable USE_AV_COPY based on HCC work-week.
- Review hipModule docs, some calrity/editing.
Change-Id: I3ce7c25ece048c3504f55ecd4683e506bb1fc8b6
[ROCm/clr commit: 02f65a483c ]
2016-09-02 09:46:59 -05:00
Ben Sander
704b269d28
enable dynamic shared always
...
Change-Id: Idc246546f583a82489ef34d1fe22d0e118b1e0ed
[ROCm/clr commit: 6a8ae733cc ]
2016-09-02 09:46:59 -05:00
Aditya Atluri
1e6aa52868
added logger for return status
...
Change-Id: Ib93012a15b1cfa90714a6ebd5153cc40e28e6566
[ROCm/clr commit: 3fbe062008 ]
2016-09-02 09:44:00 -05:00
Aditya Atluri
40d824337e
fixed code according to convention
...
Change-Id: Ib90c84a30ea6da3531e8b7c3e281dd4b31915198
[ROCm/clr commit: af86d28187 ]
2016-09-02 09:31:37 -05:00
Rahul Garg
04a3cdb846
Removed Doxygen return codes from source file
...
Change-Id: Iaf9f13df73a9c17c494c9ff67203b836ee90648d
[ROCm/clr commit: 093569e611 ]
2016-09-02 18:37:26 +05:30
Rahul Garg
bb03a2274d
Added hipDeviceTotalMem
...
Change-Id: I877fbc9e4767bbd70ecd0184f5123c9bc6cbd06f
[ROCm/clr commit: 302f6c1e3a ]
2016-09-02 15:12:50 +05:30
Rahul Garg
c60fc14dcd
Added hipDeviceComputeCapability, hipDeviceGetPCIBusId and hipDeviceGetName
...
Change-Id: Ibe2d975df796712633900ddc7b0734ec2b8ab4ec
[ROCm/clr commit: 392860bf20 ]
2016-09-02 14:45:53 +05:30
pensun
65ce463726
Modify hipMalloc to take size of 0 and return NULL pointer for it.
...
Modify hipMemoryAllocate test for this change.
Change-Id: I884aee0cd5fe0c60aebb4cb37cdbb4833c5bd0c7
[ROCm/clr commit: 4ed2035dd2 ]
2016-09-01 13:08:30 -05:00
Rahul Garg
96fd13305a
Added doxygen documentation for hipCtxXXX APIs
...
Change-Id: Id9cf3491e9a8c78cb7bfeb9976c36d6fe565628f
[ROCm/clr commit: 25f3032328 ]
2016-09-01 12:22:37 +05:30
Rahul Garg
f2e8d2c976
Added HIP_INIT_API to hipDeviceSynchronize()
...
Change-Id: I9bd6bf206905621b17e1999994b5ea09b7382180
[ROCm/clr commit: a949060b12 ]
2016-09-01 11:00:30 +05:30
Aditya Atluri
eb6863017c
remove HIP_INIT_API from ihipSynchronize
...
Change-Id: Ibe0739efe55573c023212d9c28ba847c777e434c
[ROCm/clr commit: 7fdebfb8e3 ]
2016-08-29 21:42:22 -05:00
Aditya Atluri
ab83d52bd4
Added HIP_INIT_API for all context apis
...
Change-Id: I3dd8c068236d9572659a58683fdb59d2b9dccaf3
[ROCm/clr commit: cfac62f7e6 ]
2016-08-29 21:36:34 -05:00
Ben Sander
78cfa5f6d6
Refactor trace code for hipLaunchKernel.
...
- Use standard print functions for streams.
- Add HIP_INIT macro, for cases where we want to initialize HIP but not
log an API (ihipPreKernelLaunch).
Change-Id: If43cf8a363d918bcd3722a2e6a965d4cfa2e03e7
[ROCm/clr commit: fa9b95838a ]
2016-08-29 18:37:57 -05:00
Ben Sander
f538d2e510
remove stray printf
...
Change-Id: Ie64778a83dfe684ffaab3c31bc3d09b713f825b9
[ROCm/clr commit: eb61114739 ]
2016-08-29 18:36:30 -05:00
Aditya Atluri
41a363a6b7
Changed module api to work with nvcc and hipcc path
...
- Added cuda and cudart linking for nvcc path in hipcc
- Added hipMemcpyHtoD and hipMemcpyDtoH for nvcc path
- Changed hipDeviceptr to hipDeviceptr_t
- Fixed hipMemcpy*to* API signatues
Change-Id: I6ef076b507f92502efda475c83dcdcdd462afc37
[ROCm/clr commit: fb0c432095 ]
2016-08-29 15:05:12 -05:00
Aditya Atluri
9fe6924154
Cleaned up module api
...
- Moved HIP_INIT_API from internal to all public apis
- renamed hipLaunchModuleKernel to hipModuleLaunchKernel
- Changed tests according to the changed api
Change-Id: I822ff63c7c5b7dad340ece49456baf9d89428e9f
[ROCm/clr commit: 71991ed8f8 ]
2016-08-28 16:48:57 -05:00
Ben Sander
713eb5636d
Remove cutnpaste check on uninitialized hsa status
...
Change-Id: Icc0256b9b1bd01d45cca4feb1106cfe7427bcd15
[ROCm/clr commit: 46c3ff52a6 ]
2016-08-28 16:35:27 -05:00
Aditya Atluri
fa734c5a6a
Added explicit memory copy direction apis
...
- Fixed stale printf in context api
- Added 4 sync memcpy apis
1. hipMemcpyHtoD
2. hipMemcpyDtoH
3. hipMemcpyDtoD
4. hipMemcpyHtoH
- Added test for added apis
Change-Id: I4a9c382445b62631f8d0bcbb9a670322288b72b1
[ROCm/clr commit: f722a132a4 ]
2016-08-26 13:11:01 -05:00
Aditya Atluri
33a38a0e26
Added NVCC support and name changes
...
- Added NVCC support for module APIs
- Changed hipFunction and hipModule data types to hipFunction_t and hipModule_t
- Created new intenal ihipModuleGetFunction as it is used twice
- Changed test to match with the new data types
Change-Id: I300a1c7fd40ed7065b1b8b9de97e3a06b96ed729
[ROCm/clr commit: 74a8fb132d ]
2016-08-26 10:32:01 -05:00
Rahul Garg
c43c365811
Added logic to update primary ctx when ctx stack is empty, updated hipCtxDestroy and ctxGetCurrent functions
...
Change-Id: Ia0a8943c121bc1279788a1cfa9be59af614b04a6
[ROCm/clr commit: 452108b0e6 ]
2016-08-26 19:03:23 +05:30
Rahul Garg
8e09eacd0b
Addition of hipCtxEnablePeerAccess and hipCtxDisablePeerAccess functions
...
Change-Id: I381c8cbbde17eae7d9bb5d4cb1596cebf4bda039
[ROCm/clr commit: a1d401336b ]
2016-08-26 13:51:33 +05:30