Created
February 26, 2020 17:06
-
-
Save asus4/d9ff1224bd766d3941b5aec34c364396 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void Start() | |
{ | |
// Option | |
var options = new Interpreter.Options() | |
{ | |
// Multithread | |
threads = 2, | |
// Metal option | |
gpuDelegate = new MetalDelegate(new MetalDelegate.Options() | |
{ | |
allowPrecisionLoss = false, | |
waitType = MetalDelegate.WaitType.Passive, | |
}) | |
}; | |
// The constractor with option | |
interpreter = new Interpreter(File.ReadAllBytes(path), options); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment