SWDEV-298667 - fix stream operation for Cuda
Change-Id: Ida91712e678e324b54293ba48dfca442be390783
This commit is contained in:
کامیت شده توسط
Sarbojit Sarkar
والد
6e7072b980
کامیت
e24e026f37
@@ -85,6 +85,12 @@ typedef enum hipMemoryAdvise {
|
|||||||
#define STREAM_OPS_WAIT_MASK_32 0xFFFFFFFF
|
#define STREAM_OPS_WAIT_MASK_32 0xFFFFFFFF
|
||||||
#define STREAM_OPS_WAIT_MASK_64 0xFFFFFFFFFFFFFFFF
|
#define STREAM_OPS_WAIT_MASK_64 0xFFFFFFFFFFFFFFFF
|
||||||
|
|
||||||
|
// stream operation flags
|
||||||
|
#define hipStreamWaitValueGte CU_STREAM_WAIT_VALUE_GEQ
|
||||||
|
#define hipStreamWaitValueEq CU_STREAM_WAIT_VALUE_EQ
|
||||||
|
#define hipStreamWaitValueAnd CU_STREAM_WAIT_VALUE_AND
|
||||||
|
#define hipStreamWaitValueNor CU_STREAM_WAIT_VALUE_NOR
|
||||||
|
|
||||||
// hipLibraryPropertyType
|
// hipLibraryPropertyType
|
||||||
#define hipLibraryPropertyType libraryPropertyType
|
#define hipLibraryPropertyType libraryPropertyType
|
||||||
#define HIP_LIBRARY_MAJOR_VERSION MAJOR_VERSION
|
#define HIP_LIBRARY_MAJOR_VERSION MAJOR_VERSION
|
||||||
@@ -2380,7 +2386,7 @@ inline static hipError_t hipStreamWriteValue64(hipStream_t stream,
|
|||||||
|
|
||||||
inline static hipError_t hipStreamWaitValue32(hipStream_t stream,
|
inline static hipError_t hipStreamWaitValue32(hipStream_t stream,
|
||||||
void* ptr, int32_t value, unsigned int flags,
|
void* ptr, int32_t value, unsigned int flags,
|
||||||
uint32_t mask) {
|
uint32_t mask __dparm(0xFFFFFFFF)) {
|
||||||
if (value < 0) {
|
if (value < 0) {
|
||||||
printf("Warning! value is negative, CUDA accept positive values\n");
|
printf("Warning! value is negative, CUDA accept positive values\n");
|
||||||
}
|
}
|
||||||
@@ -2393,7 +2399,7 @@ inline static hipError_t hipStreamWaitValue32(hipStream_t stream,
|
|||||||
|
|
||||||
inline static hipError_t hipStreamWaitValue64(hipStream_t stream,
|
inline static hipError_t hipStreamWaitValue64(hipStream_t stream,
|
||||||
void* ptr, int64_t value, unsigned int flags,
|
void* ptr, int64_t value, unsigned int flags,
|
||||||
uint64_t mask) {
|
uint64_t mask __dparm(0xFFFFFFFFFFFFFFFF)) {
|
||||||
if (value < 0) {
|
if (value < 0) {
|
||||||
printf("Warning! value is negative, CUDA accept positive values\n");
|
printf("Warning! value is negative, CUDA accept positive values\n");
|
||||||
}
|
}
|
||||||
|
|||||||
مرجع در شماره جدید
Block a user