Request an adapter with Instance::request_adapter in wgpu
Ask wgpu 24 for a high-performance GPU adapter with Instance::request_adapter, handle the Option it returns and print the adapter's name and backend.
Short posts that solve one thing: the code, the output we got, and why it works.
Ask wgpu 24 for a high-performance GPU adapter with Instance::request_adapter, handle the Option it returns and print the adapter's name and backend.
Set the local workgroup size of a GLSL compute shader with layout(local_size_x = 64) in, and compute the global index from gl_GlobalInvocationID.
Call clGetPlatformIDs twice, once for the count and once for the handles, then print each platform name with clGetPlatformInfo in OpenCL 3.0 C.
Record a CUDA timeline with nsys profile --trace=cuda,nvtx in Nsight Systems 2024 and print per-kernel totals from the report without opening the GUI.
Create a fence already signalled with VK_FENCE_CREATE_SIGNALED_BIT so the first vkWaitForFences in a frame loop returns instead of hanging.
Compile a GLSL shader to SPIR-V with glslc from the Vulkan SDK, letting the file extension pick the stage and setting the target environment.
Create a VkInstance for Vulkan 1.3 with vkCreateInstance, asking GLFW for the surface extensions the window system needs.
Mark a function __global__ in CUDA 12 so the host launches it and the device runs it, returning void, and see which qualifiers may call which.
Get the default Metal GPU with MTLCreateSystemDefaultDevice in Objective-C on macOS 14 and read its name, unified memory flag and working-set budget.
Encode H.264 on an NVIDIA GPU with h264_nvenc, using -preset p5, -tune hq and a constant-quality -cq value, on FFmpeg 4.4 or later.
Enable vsync with glfwSwapInterval(1) so the buffer swap waits for the display refresh and the loop does not run flat out in GLFW 3.4.
Decode H.264 on an NVIDIA GPU with ffmpeg -hwaccel cuda, which uses NVDEC but copies frames back to system memory unless you also set an output format.
We send one email when a new post is published. No spam.