Conversation
…nd test performance against macos arm MPS.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
To build the image, run the following command in the root directory of the project:
To make a volume for the container, use the following command:
This volume part might not be necessary.
To run the container, use the following command:
$ docker run -it --platform="linux/amd64" --name chai-vm --hostname chai-vm --privileged --memory 2g --cpus 2 -v chai-vol chai-build-envThen you may run the following:
Locally, you can do
Current Status
Currently, you need to have a working installation of CMake, PyThon, and Chapel to use ChAI.
General build instructions
After cloning,
$ git clone https://github.com/chapel-lang/ChAI.git $ cd ChAIuse CMake to build the project.
$ mkdir build $ cd build $ cmake -DCMAKE_BUILD_TYPE=Release ..This will create a
builddirectory and run CMake to generate the necessary build files.To test if the build environment is working, you can run the following command:
The first command will compile the
MyExampleprogram, which is a simple "Hello, world!" program that uses ChAI. The second command will compile theTorchTestBridgeprogram, which tests the PyTorch interop functionality of ChAI.See
docker-dev-run.mdfor instructions on how to run the examples in a Docker container. This is useful if either of these build steps fail on your system.You may also try