Skip to content

Instantly share code, notes, and snippets.

View sooham's full-sized avatar
💭
School

Sooham Rafiz sooham

💭
School
View GitHub Profile
@sooham
sooham / gist:ad7f86d80eaacaf1a9c5eadbb579e37d
Last active April 22, 2026 20:08
CUDA GPU information dump
#include <iostream>
#include <cuda_runtime.h>
void printDevProp(cudaDeviceProp devProp) {
printf("Compute Capability: %d.%d\n", devProp.major, devProp.minor);
printf("SMs: %d\n", devProp.multiProcessorCount);
printf("Max threads per SM: %d\n", devProp.maxThreadsPerMultiProcessor);
printf("Max threads per block: %d\n", devProp.maxThreadsPerBlock);
printf("Warp size: %d\n", devProp.warpSize);