Skip to content

Instantly share code, notes, and snippets.

View ASKabalan's full-sized avatar

Wassim KABALAN ASKabalan

View GitHub Profile
@jefflarkin
jefflarkin / cudaCheckError.c
Created April 15, 2013 20:18
A simple macro for checking errors after CUDA library calls.
//Macro for checking cuda errors following a cuda launch or api call
#define cudaCheckError() { \
cudaError_t e=cudaGetLastError(); \
if(e!=cudaSuccess) { \
printf("Cuda failure %s:%d: '%s'\n",__FILE__,__LINE__,cudaGetErrorString(e)); \
exit(0); \
} \
}
@slowpeek
slowpeek / nvidia-smi
Last active July 26, 2024 17:49
nvidia-smi dmon adapter: 525, 530, 535, 545
#!/usr/bin/env bash
# MIT license (c) 2022-2024 https://github.com/slowpeek
# Homepage: https://gist.github.com/slowpeek/006680bb06e671bc489d4a3274ff3d19
: <<'README'
Applicable nvidia driver versions: 525, 530, 535, 545, 550
ABOUT --