Skip to content

Instantly share code, notes, and snippets.

@abbaswasim
Forked from giraphics/run.sh
Last active September 16, 2022 18:30
Show Gist options
  • Save abbaswasim/4e1d9a2a49c824abfd0fed7934ea3847 to your computer and use it in GitHub Desktop.
Save abbaswasim/4e1d9a2a49c824abfd0fed7934ea3847 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