forked from datamol-io/graphium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenable_ipu.sh
executable file
·29 lines (22 loc) · 964 Bytes
/
enable_ipu.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
"""
--------------------------------------------------------------------------------
Copyright (c) 2023 Graphcore Limited.
Use of this software is subject to the terms and conditions outlined in the LICENSE file.
Unauthorized modification, distribution, or use is prohibited. Provided 'as is' without
warranties of any kind.
Graphcore Limited is not liable
for any damages arising from its use.
Refer to the LICENSE file for the full terms and conditions.
--------------------------------------------------------------------------------
"""
#!/bin/bash
# Default location for the virtual environment
default_venv_name=".graphium_ipu"
# Allow the user to specify the location of their virtual environment
# If not specified, use the default location
venv_name=${1:-$default_venv_name}
# Constants
sdk_path="${venv_name}/poplar_sdk-ubuntu_20_04-3.3.0+1403-208993bbb7"
# Source the virtual environment
source ${venv_name}/bin/activate
source ${sdk_path}/enable