KhronosGroup / KhronosGroup/OpenCL-CTS

a couple of tests cast CL_DEVICE_IMAGE_MAX_BUFFER_SIZE value to int

Open
#2,056 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

There are a handful of tests, which case the returned value of `CL_DEVICE_IMAGE_MAX_BUFFER_SIZE` to an `int`, e.g. https://github.com/KhronosGroup/OpenCL-CTS/blob/be8b56d94972b4d159e7471aebf5e9ab302d4d81/test_conformance/images/clCopyImage/test_copy_1D_buffer.cpp#L185

This will become a problem on GPUs with more than ~32GiB of VRAM (an implementation can effectively return 1/16 of `CL_DEVICE_MAX_MEM_ALLOC_SIZE` for `CL_DEVICE_IMAGE_MAX_BUFFER_SIZE`)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with test_conformance/images/clCopyImage/test_copy_1D_buffer.cpp at the referenced cast, then search the image tests for other casts of CL_DEVICE_IMAGE_MAX_BUFFER_SIZE. Update each affected test so larger values are preserved, and verify the tests no longer truncate values above the 32 GiB range.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.