Unverified Commit 4f4cad7e authored by Weile's avatar Weile Committed by GitHub
Browse files

Add CUDA support for hipDeviceAttributeWarpSize (#205)

Add macro definition to map hipDeviceAttributeWarpSize to cudaDevAttrWarpSize
for CUDA compatibility in the GetWarpSize() function.
parent fbb3a80e
......@@ -460,6 +460,7 @@ namespace TransferBench
// Enumerations
#define hipDeviceAttributeClockRate cudaDevAttrClockRate
#define hipDeviceAttributeMultiprocessorCount cudaDevAttrMultiProcessorCount
#define hipDeviceAttributeWarpSize cudaDevAttrWarpSize
#define hipErrorPeerAccessAlreadyEnabled cudaErrorPeerAccessAlreadyEnabled
#define hipFuncCachePreferShared cudaFuncCachePreferShared
#define hipMemcpyDefault cudaMemcpyDefault
......@@ -4104,6 +4105,7 @@ static bool IsConfiguredGid(union ibv_gid const& gid)
#undef hipDeviceAttributeClockRate
#undef hipDeviceAttributeMaxSharedMemoryPerMultiprocessor
#undef hipDeviceAttributeMultiprocessorCount
#undef hipDeviceAttributeWarpSize
#undef hipErrorPeerAccessAlreadyEnabled
#undef hipFuncCachePreferShared
#undef hipMemcpyDefault
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment