Add support for hipExtStreamCreateWithCUMask API

Change-Id: I369d0eaca493821c4badc6b18ac02daa2fddc95f


[ROCm/clr commit: 3a30b9eb8d]
이 커밋은 다음에 포함됨:
Aryan Salmanpour 작성하고 Aryan Salmanpour가 2020-05-22 11:34:06 -04:00를 커밋함
1 부모 d573b01f37
커밋 9d76c76746
5 파일이 변경됨
+51 -6

검색과 일치하는 파일 없음

+22
파일 보기
@@ -849,6 +849,28 @@ hipError_t hipStreamGetFlags(hipStream_t stream, unsigned int* flags);
hipError_t hipStreamGetPriority(hipStream_t stream, int* priority);
/**
* @brief Create an asynchronous stream with the specified CU mask.
*
* @param[in, out] stream Pointer to new stream
* @param[in ] cuMaskSize Size of CU mask bit array passed in.
* @param[in ] cuMask Bit-vector representing the CU mask. Each active bit represents using one CU.
* The first 32 bits represent the first 32 CUs, and so on. If its size is greater than physical
* CU number (i.e., multiProcessorCount member of hipDeviceProp_t), the extra elements are ignored.
* It is user's responsibility to make sure the input is meaningful.
* @return #hipSuccess, #hipErrorInvalidHandle, #hipErrorInvalidValue
*
* Create a new asynchronous stream with the specified CU mask. @p stream returns an opaque handle
* that can be used to reference the newly created stream in subsequent hipStream* commands. The
* stream is allocated on the heap and will remain allocated even if the handle goes out-of-scope.
* To release the memory used by the stream, application must call hipStreamDestroy.
*
*
* @see hipStreamCreate, hipStreamSynchronize, hipStreamWaitEvent, hipStreamDestroy
*/
hipError_t hipExtStreamCreateWithCUMask(hipStream_t* stream, uint32_t cuMaskSize, const uint32_t* cuMask);
/**
* Stream CallBack struct
*/