You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: INSTALL.md
+57-55Lines changed: 57 additions & 55 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,9 @@
1
-
Cloc Install Instructions 1.0P
2
-
==============================
1
+
Cloc 0.9 Install Instructions
2
+
=============================
3
+
4
+
Warning. These instructions are for HSA 1.0F .
3
5
4
-
The Cloc utility consists of three bash scripts with file names "cloc.sh" , "snack.sh" , and "snk_genw.sh" . These are found in the bin directory of this repository. Copy these files to a bin directory in your Linux environment PATH such as /usr/local/bin. To update to a new version of Cloc simply replace cloc.sh snack.sh, and snk_genw.sh in that directory.
6
+
The Cloc utility consists of three bash scripts with file names "cloc.sh" , "snack.sh" , and "snk_genw.sh" . These are found in the bin directory of this repository. Copy these files to /opt/amd/cloc/bin. To update to a new version of Cloc simply replace cloc.sh snack.sh, and snk_genw.sh in directory /opt/amd/cloc/bin.
5
7
6
8
In addition to the bash scripts, Cloc requires the HSA runtime and the HLC compiler. This set of instructions can be used to install a comprehensive HSA software stack and the Cloc utility for Ubuntu. In addition to Linux, you must have an HSA compatible system such as a Kaveri processor. There are four major steps to this process:
7
9
@@ -16,15 +18,15 @@ In addition to the bash scripts, Cloc requires the HSA runtime and the HLC compi
16
18
17
19
## Install Ubuntu 14.04 LTS
18
20
19
-
Make sure Ubuntu 14.04 LTS 64-bit version has been installed. We recommend the server package set. The utica version of ubuntu (14.10) has not been tested with HSA. Then install these dependencies:
21
+
Make sure Ubuntu 14.04 LTS 64-bit version has been installed. Ubunutu 14.04 is also known as trusty. We recommend the server package set. The utica version of ubuntu (14.10) has not been tested with HSA. Then install these dependencies:
20
22
```
21
23
sudo apt-get update
22
24
sudo apt-get upgrade
23
25
sudo apt-get install git
24
26
sudo apt-get install make
25
27
sudo apt-get install g++
26
28
sudo apt-get install libstdc++-4.8-dev
27
-
sudo apt-get install libelf-dev
29
+
sudo apt-get install libelf
28
30
sudo apt-get install libtinfo-dev
29
31
sudo apt-get install re2c
30
32
sudo apt-get install libbsd-dev
@@ -47,16 +49,16 @@ mount the appropriate MLNX_OFED iso
47
49
48
50
## Install HSA Linux Kernel Drivers
49
51
50
-
Make sure you get the backlevel <b>kfd-v1.0.x</b> branch. This set of instructions is for the provisional HSA runtime. The software stack for the new <b>finalized v1.0F</b> is not yet complete. We will update these install instructions when that is complete. This should be sometime in June 2015.
As of Cloc version 0.8 the executable shell script names are changed to cloc.sh, snack.sh and snk_genw.sh.
120
-
These scripts need to be copied to a directory that is in users PATH. For example /usr/local/bin is typically in PATH.
112
+
As of Cloc version 0.9 the cl frontend clc2 and supporting LLVM 3.6 executables are stored in the same directory as the cloc.sh, snack.sh and snk_genw.sh shell scripts. These scripts need to be copied should be copied into /opt/amd/cloc/bin
This was formerly known as C++AMP. This step is optional because it is not needed for Cloc. However this is becoming a very good HSA compiler.
132
+
## Set HSA environment variables
136
133
134
+
As of Cloc version 0.9, HSA_LLVM_PATH is no longer required because cloc.sh and snack.sh expect the binaries to be in the same directory where cloc.sh and snack.sh are stored. For testing other compilers or versions of the HSA LLVM binaries, you may set HSA_LLVM_PATH or use the -p option as noted in the help. The snack.sh script assumes HSA_RUNTIME_PATH is /opt/hsa. However, we recommend using LD_LIBRARY_PATH to find the current version of he HSA runtime as follows:
This step is also optional. It is not needed for Cloc. However, it is currently needed for the experimental version of gcc that supports OpenMP accelertion in HSA.
140
+
We recommend that cloc.sh, snack,sh, and printhsail be available in your path. You can symbolically link them or add to PATH as follows:
0 commit comments