This guide is for those who wish to get set up quickly with Intel HE Toolkit.
In this guide, you will get up and running with a VS Code enabled docker container.
Make sure you have git
on your system.
git clone https://github.com/intel/he-toolkit.git
Move into your he-toolkit
directory.
cd he-toolkit
Make sure your python >= 3.10 and that you have pip.
python --version
pip install -r requirements.txt
For a default initialization of the toolkit, you will be asked whether to modify your shell configuration file which you may wish to do yourself instead.
./hekit init --default-config
Check that the docker
command is on your system.
Moreover, check that you are in the docker
group. You can use the id
command to check. The docker
group should appear as one of your groups.
For an IDE experience, we recommend building the VS Code enabled docker container.
hekit docker-build --enable vscode
To run the container run
docker run -d -p <ip addr>:<port>:8888 <username>/ubuntu_he_vscode:<hekit-version>
Note if you do not specify an IP address, it will default to localhost
(0.0.0.0).
Using the browser of your choice, navigate to <ip addr>:<port>
. eg.,
localhost:1234
.
If you cannot remember what IP/port was assigned to the docker container, run
docker ps
to list the current running containers and it should list the IP/port used by your container.
Through your browser, go to the terminal pane in VS Code and type,
source ~/he-toolkit/docker/runners.sh
This will provide access to a list of example programs that can be run from the command line.
To view the list of programs run
welcome_message