Skip to content

Instantly share code, notes, and snippets.

@giraphics
Last active September 16, 2022 18:06
Show Gist options
  • Save giraphics/38c633af457034af0a9aaa4c76256efc to your computer and use it in GitHub Desktop.
Save giraphics/38c633af457034af0a9aaa4c76256efc to your computer and use it in GitHub Desktop.
Enabling Metal Validation Layer through command line application
# Enable Metal validation layer: 0FF-0, ON-1
export METAL_DEVICE_WRAPPER_TYPE=1
export METAL_ERROR_MODE=5
export METAL_DEBUG_ERROR_MODE=5
# Clean and make
make clean && make
# Execute
./YourExecutableName
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment