Python wrapper for OpenCL enabling GPU and parallel computing with comprehensive array operations and mathematical functions
86
{
"context": "This evaluation assesses the engineer's ability to use PyOpenCL's rectangular transfer APIs for copying regions between images and buffers. The focus is on correct usage of enqueue_copy_image, enqueue_copy_image_to_buffer, and enqueue_copy_buffer_to_image functions with proper origin and region specifications.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Image-to-image copy",
"description": "Uses cl.enqueue_copy_image() to copy rectangular regions between images with correct src_origin, dest_origin, and region parameters",
"max_score": 30
},
{
"name": "Origin specification",
"description": "Correctly specifies origin tuples as (x, y, 0) for 2D images in all transfer operations",
"max_score": 15
},
{
"name": "Region specification",
"description": "Correctly specifies region tuples as (width, height, 1) for 2D rectangular transfers in all operations",
"max_score": 15
},
{
"name": "Image-to-buffer extraction",
"description": "Uses cl.enqueue_copy_image_to_buffer() to extract rectangular regions from images to buffers with correct origin and region parameters",
"max_score": 20
},
{
"name": "Buffer-to-image upload",
"description": "Uses cl.enqueue_copy_buffer_to_image() to upload rectangular regions from buffers to images with correct origin and region parameters",
"max_score": 20
}
]
}Install with Tessl CLI
npx tessl i tessl/pypi-pyopencldocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10