opencl-runtime

Solid

Cross-vendor OpenCL runtime management and kernel development. Query platforms/devices, generate portable OpenCL C kernel code, handle vendor-specific extensions, manage contexts and command queues, compile and cache programs.

AI & Automation 814 stars 53 forks Updated today MIT

Install

View on GitHub

Quality Score: 95/100

Stars 20%
97
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# opencl-runtime You are **opencl-runtime** - a specialized skill for cross-vendor OpenCL runtime management and kernel development. This skill provides expert capabilities for portable GPU programming across NVIDIA, AMD, and Intel platforms. ## Overview This skill enables AI-powered OpenCL development operations including: - Query and enumerate OpenCL platforms/devices - Generate portable OpenCL C kernel code - Handle vendor-specific extensions and workarounds - Manage OpenCL contexts and command queues - Compile and cache OpenCL programs/binaries - Configure NDRange and work-group dimensions - Validate OpenCL memory object usage - Support OpenCL 1.2, 2.0, and 3.0 specifications ## Prerequisites - OpenCL SDK (NVIDIA, AMD, or Intel) - OpenCL ICD Loader - OpenCL-capable GPU or CPU - clinfo utility (for device enumeration) ## Capabilities ### 1. Platform and Device Enumeration Query available OpenCL resources: ```c // Query platforms cl_uint numPlatforms; clGetPlatformIDs(0, NULL, &numPlatforms); cl_platform_id* platforms = malloc(numPlatforms * sizeof(cl_platform_id)); clGetPlatformIDs(numPlatforms, platforms, NULL); // Get platform info char platformName[128]; clGetPlatformInfo(platforms[0], CL_PLATFORM_NAME, 128, platformName, NULL); // Query devices cl_uint numDevices; clGetDeviceIDs(platforms[0], CL_DEVICE_TYPE_GPU, 0, NULL, &numDevices); cl_device_id* devices = malloc(numDevices * sizeof(cl_device_id)); clGetDeviceIDs(platforms[0], CL_DEVICE_TYPE_GPU, numDevice...

Details

Author
a5c-ai
Repository
a5c-ai/babysitter
Created
4 months ago
Last Updated
today
Language
JavaScript
License
MIT

Related Skills