Maneesh Gupta
bc4f388b69
Prefix HIP includes with hip/
2016-04-19 15:02:12 +05:30
pensun
234727c801
Add missing cudaMemsetAsync transformation
2016-04-14 09:02:02 -05:00
pensun
535de2ecc1
fix query of memoryClockRate and memoryBusWidth for both NV and HCC path
2016-03-25 09:24:08 -05:00
Aditya Atluri
e5918ce729
Revert "Revert "fix nvcc for hipHostMalloc* flags.""
...
This reverts commit 3f5eb20cf0 .
2016-03-21 10:39:49 -05:00
Aditya Atluri
3f5eb20cf0
Revert "fix nvcc for hipHostMalloc* flags."
...
This reverts commit b6962826eb .
2016-03-21 10:36:14 -05:00
Ben Sander
b6962826eb
fix nvcc for hipHostMalloc* flags.
2016-03-21 09:33:46 -05:00
Ben Sander
ab910efb96
hipHostRegister and hipHostMalloc refactor.
...
Note hipHostMalloc (not hipHostAlloc or hipMallocHost).
- the hipHost* is used for all HIP APIs dealing with Host memory.
(including hipHostMalloc, hipHostFree, hipHostRegister,
hipHostUnregister, hipHostGetFlags, hipHostGetDevicePointer).
- hipMallocHost is consistent with "hipMalloc" for allocating device
memory. Enumerations hipHostMalloc* also used as optional
flags parm to hipHostMalloc.
2016-03-22 02:30:10 -05:00
Ben Sander
9941ba0bc6
fix nvcc compiler
...
- MallocHost and FreeHost deprecation.
- Change tests to call new hipHost* equivs.
- Add missing StreamSynchronize.
2016-03-19 04:20:15 -05:00
Ben Sander
cea37c3e91
Deprecate hipMallocHost and hipFreeHost.
...
These will print compiler warnings if used, so we can weed them out
before removing.
Also add a default flags args for hipHostAlloc, in the C++ functioin
headers. So you can replace hipMallocHost(&ptr, size( with hipHostAlloc(&ptr, size)
2016-03-19 22:53:59 -05:00
Aditya Atluri
d9429dd4ec
Added hipHostRegister flags
2016-03-07 10:52:40 -06:00
Aditya Atluri
4ed0b1cb1a
Added hipHostRegister feature for CUDA backend and its tests
2016-03-07 03:42:50 -06:00
Maneesh Gupta
39d5a2c079
Fix typo in nvcc_detail/hip_runtime_api.h
2016-03-07 09:40:15 +05:30
Aditya Atluri
75952029d6
added feature for hipHostGetFlags for CUDA and HIP
2016-03-06 12:17:30 -06:00
Aditya Atluri
d3ba2b9782
corrected hipDeviceGetProperties to hipGetDeviceProperties - not docs
2016-03-06 08:31:04 -06:00
Aditya Atluri
f479531be5
Added hipHostAlloc feature for CUDA
2016-03-05 13:58:56 -06:00
Aditya Atluri
a5408ed7b6
v2 Added canHostMapMemory
2016-03-05 13:15:07 -06:00
Aditya Atluri
2ebbdd6ec5
Revert "Added canMapHostMemory feature"
...
This reverts commit af4edd277f .
2016-03-05 13:08:57 -06:00
Aditya Atluri
af4edd277f
Added canMapHostMemory feature
2016-03-05 13:06:37 -06:00
Aditya Avinash Atluri
ecadb1623c
Merge pull request #4 from AMDComputeLibraries/memtracker
...
hipGetPointerAttrib behavioral changes
2016-02-27 10:51:23 -06:00
Aditya Avinash Atluri
6d66bd63de
Added CUDA support for hipPointerGetAttributes
2016-02-26 12:33:55 -06:00
Ben Sander
369e0d7b5b
Merge branch 'memtracker' into privatestaging
...
Conflicts:
include/nvcc_detail/hip_runtime_api.h
2016-02-26 06:17:05 -06:00
Evgeny Mankov
57e212606d
Attribute hipDeviceAttributeIsMultiGpuBoard for obtaining Device property isMultiGpuBoard is added.
...
On HIP path property obtaining done through hsa_iterate_agents and counting the devices of HSA_DEVICE_TYPE_GPU type.
P.S.
On multi-boards systems it might be problems with detection what board a GPU plugged into (not tested).
2016-02-25 23:44:39 +03:00
Evgeny Mankov
833c9e52ad
Guard #ifdef USE_ROCR_20 is added for ROCR_20 device properties (memoryClockRate, memoryBusWidth)
...
By default isn't defined.
To add ROCR_20 support HIP have to be compiled as follows: make CXX_DEFINES+=-DUSE_ROCR_20
2016-02-19 13:27:03 +03:00
Evgeny Mankov
1c19dbb807
Device property memoryBusWidth implementation.
...
+ Device property memoryBusWidth is added to hipDeviceProp_t struct.
+ Device attribute hipDeviceAttributeMemoryBusWidth is added to hipDeviceAttribute_t struct.
+ Tests update.
2016-02-18 18:15:01 +03:00
Evgeny Mankov
5ea8543d2e
Device property memoryClockRate implementation.
...
+ Device property memoryClockRate is added to hipDeviceProp_t struct.
+ Device attribute hipDeviceAttributeMemoryClockRate is added to hipDeviceAttribute_t struct.
+ Tests update.
+ Rename hipDevAttrConcurrentKernels to hipDeviceAttributeConcurrentKernels.
2016-02-18 17:25:28 +03:00
Evgeny Mankov
2b6fda77ca
Attribute hipDevAttrConcurrentKernels for obtaining Device property concurrentKernels is added.
2016-02-18 14:34:18 +03:00
Ben Sander
b63470f4cc
remove extra :
2016-02-18 03:05:53 -06:00
Evgeny Mankov
ea8f99702d
Fix typo: maxThreadsPerMultiProcessor -> MaxSharedMemoryPerMultiprocessor
...
Device property MaxSharedMemoryPerMultiprocessor set equal to totalGlobalMem (HIP path).
Reason: MaxSharedMemoryPerMultiprocessor should be as the same as group memory size. Group memory will not be paged out, so, the physical memory size = total shared memory size = group region size. NVCC path remains untouched: CUDA's device property MaxSharedMemoryPerMultiprocessor is reported.
hipify is updated as well.
2016-02-12 01:29:20 +03:00
Evgeny Mankov
33f60c300d
BDFID (BusID/DeviceID/FunctionID) support.
...
Except FunctionID (or DomainID in CUDA) support, because cudaDeviceProp::pciDomainID is not reported by CUDA.
2016-02-11 22:26:01 +03:00
Evgeny Mankov
950c3baacd
Device property concurrentKernels is added to hipDeviceProp_t struct.
...
For HCC path concurrentKernels is set to true since all ROCR hardware supports this feature.
For NVCC path concurrentKernels is obtained from CUDA's device property cudaDeviceProp::concurrentKernels.
2016-02-09 17:10:35 +03:00
Maneesh Gupta
3291e0ec96
Move HIP_DEVICE_COMPILE defines to hip_common.h
2016-02-09 10:57:20 +05:30
Ben Sander
76ebe6dcfd
Fix getdeviceattr compilation for NVCC
2016-02-04 16:26:33 -06:00
Sam Kolton
0a27507208
Implementation of hipDeviceGetAttribute()
2016-02-04 17:39:27 +03:00
Ben Sander
f38e63ff18
Initial commit for GPUOpen Launch
2016-01-26 20:14:33 -06:00