KhronosGroup / KhronosGroup/OpenCL-CTS

clEnqueueSVMMemFill is not properly tested

Open
#2,201 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
232
Forks
235
Avg merge
8d 7h
Merged PRs (30d)
18

Description

I just noticed today, that when the implementation of `clEnqueueSVMMemFill` is doing nothing it can make the CTS pass. I suspect this is usually only the case when allocated memory is zeroed by the OS (host memory or GPUs with unified memory). The tests using `clEnqueueSVMMemFill` seem to only compare between two allocations, but not to what's expected from the tests perspective. "svm_enqueue_api" is one of the tests impacted by this, "svm_migrate" might be as well.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the svm_enqueue_api test and inspect how clEnqueueSVMMemFill results are checked; review svm_migrate for the same gap. Compare each result with the expected fill value rather than only another allocation, and confirm the affected tests fail when the operation does nothing.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.