P4 to Git Change 1119692 by xcui@merged_opencl_jxcwin on 2015/02/06 16:20:16
EPR #413091 - created backing store in the maptarget and move the commit SVM memory funciton into alloMaptarget function. Added sync funtion in map so that it can handle mGPU cases. Affected files ... ... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_svm.cpp#9 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpumemory.cpp#116 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuresource.cpp#205 edit
이 커밋은 다음에 포함됨:
1 부모
4677869ab9
커밋
12a7fe0d71
2 파일이 변경됨
+18
-2
검색과 일치하는 파일 없음
@@ -346,7 +346,7 @@ Resource::create(MemoryType memType, CreateParams* params, bool heap)
|
||||
desc.vaBase = 0;
|
||||
desc.minAlignment = 0;
|
||||
desc.section = GSL_SECTION_REGULAR;
|
||||
if (NULL != params && NULL != params->owner_) { //make sure params not NULL
|
||||
if (NULL != params && NULL != params->owner_ && memType != Pinned) { //make sure params not NULL
|
||||
mcaddr svmPtr = reinterpret_cast<mcaddr>(params->owner_->getSvmPtr());
|
||||
desc.vaBase = (svmPtr == 1)? 0:svmPtr;
|
||||
cal_.SVMRes_ = (svmPtr != 0);
|
||||
|
||||
새 이슈에서 참조
사용자 차단