mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-25 08:19:02 +00:00
clean up unified SVM memory fill test (#2518)
Removes unused code from the unified SVM memory fill test. Adds an informational message when a unified SVM capability combination is skipped for memcpy and memfill.
This commit is contained in:
@@ -174,10 +174,14 @@ struct UnifiedSVMOPs : UnifiedSVMBase
|
|||||||
"type %u\n",
|
"type %u\n",
|
||||||
src_ti, dst_ti);
|
src_ti, dst_ti);
|
||||||
err = test_svm_memcpy(src_ti, dst_ti);
|
err = test_svm_memcpy(src_ti, dst_ti);
|
||||||
if (CL_SUCCESS != err)
|
test_error(err, "test_svm_memcpy failed");
|
||||||
{
|
}
|
||||||
return err;
|
else
|
||||||
}
|
{
|
||||||
|
log_info(
|
||||||
|
" skipping clEnqueueSVMMemcpy() SVM type %u -> SVM "
|
||||||
|
"type %u\n",
|
||||||
|
src_ti, dst_ti);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -132,29 +132,18 @@ struct UnifiedSVMMemFill : UnifiedSVMBase
|
|||||||
{
|
{
|
||||||
if (caps_compatibility_check(ti))
|
if (caps_compatibility_check(ti))
|
||||||
{
|
{
|
||||||
|
log_info(" testing clEnqueueSVMMemFill() SVM type %u\n", ti);
|
||||||
log_info(" testing clEnqueueSVMMemFill() SVM type %u \n", ti);
|
|
||||||
err = test_svm_memfill(ti);
|
err = test_svm_memfill(ti);
|
||||||
if (CL_SUCCESS != err)
|
test_error(err, "test_svm_memfill failed");
|
||||||
{
|
}
|
||||||
return err;
|
else
|
||||||
}
|
{
|
||||||
|
log_info(" skipping clEnqueueSVMMemFill() SVM type %u\n", ti);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return CL_SUCCESS;
|
return CL_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename T>
|
|
||||||
std::unique_ptr<USVMWrapper<T>> get_hostptr_usvm_wrapper()
|
|
||||||
{
|
|
||||||
return std::unique_ptr<USVMWrapper<T>>(
|
|
||||||
new USVMWrapper<T>(nullptr, nullptr, nullptr, CL_UINT_MAX,
|
|
||||||
CL_SVM_CAPABILITY_SYSTEM_ALLOCATED_KHR
|
|
||||||
| CL_SVM_CAPABILITY_HOST_READ_KHR
|
|
||||||
| CL_SVM_CAPABILITY_HOST_WRITE_KHR,
|
|
||||||
0, nullptr, nullptr, nullptr, nullptr));
|
|
||||||
}
|
|
||||||
|
|
||||||
bool caps_compatibility_check(cl_uint TypeIndex)
|
bool caps_compatibility_check(cl_uint TypeIndex)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user