P4 to Git Change 1547668 by lmoriche@lmoriche_opencl_dev2 on 2018/04/29 14:51:30
SWDEV-145570 - [HIP] - Set SVM pointer arguments by passing a reference to the value to match other T_POINTER arguments. Affected files ... ... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_svm.cpp#24 edit ... //depot/stg/opencl/drivers/opencl/runtime/platform/kernel.cpp#25 edit
Этот коммит содержится в:
@@ -75,7 +75,7 @@ void KernelParameters::set(size_t index, size_t size, const void* value, bool sv
|
||||
|
||||
if (desc.type_ == T_POINTER && desc.size_ != 0) {
|
||||
if (svmBound) {
|
||||
LP64_SWITCH(uint32_value, uint64_value) = (LP64_SWITCH(uint32_t, uint64_t))value;
|
||||
LP64_SWITCH(uint32_value, uint64_value) = *(LP64_SWITCH(uint32_t*, uint64_t*))value;
|
||||
svmBound_[index] = true;
|
||||
} else if ((value == NULL) || (static_cast<const cl_mem*>(value) == NULL)) {
|
||||
LP64_SWITCH(uint32_value, uint64_value) = 0;
|
||||
|
||||
Ссылка в новой задаче
Block a user