make it _much_ easier to run command line tools from the command line (#49)
This commit is contained in:
@@ -24,11 +24,15 @@ Then cmd-r to run.
|
||||
|
||||
### Running (CommandLine)
|
||||
|
||||
`mnist-tool` can also be run from the command line if built from Xcode, but
|
||||
the `DYLD_FRAMEWORK_PATH` must be set so that the frameworks and bundles can be found:
|
||||
Use the `mlx-run` script to run the command line tools:
|
||||
|
||||
```
|
||||
./mlx-run mnist-tool --data /tmp
|
||||
```
|
||||
|
||||
By default this will find and run the tools built in _Release_ configuration. Specify `--debug`
|
||||
to find and run the tool built in _Debug_ configuration.
|
||||
|
||||
See also:
|
||||
|
||||
- [MLX troubleshooting](https://ml-explore.github.io/mlx-swift/MLX/documentation/mlx/troubleshooting)
|
||||
|
||||
```
|
||||
DYLD_FRAMEWORK_PATH=~/Library/Developer/Xcode/DerivedData/mlx-examples-swift-ceuohnhzsownvsbbleukxoksddja/Build/Products/Debug ~/Library/Developer/Xcode/DerivedData/mlx-examples-swift-ceuohnhzsownvsbbleukxoksddja/Build/Products/Debug/mnist-tool --data /tmp
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user