Installing CAF on Windows

73 views
Skip to first unread message

Walt Brainerd

unread,
Jul 7, 2018, 11:44:19 AM7/7/18
to opencoarrays
With "install.sh", I will avoid the -i option.
I tried the option -M /usr and was told it is an illegal use of the script.
I tried -y, but still had to answer "Y" at one point.
-j does not cause a problem--I don't know if it actually runs on 4 processors.

These are the instructions I have for installing CAF on Windows.
Please feel free to use any of the words you want.

To install WSL, use your web browser to go to https://microsoft.com. Search (the little magnifying glass icon) for ubuntu. Click on Ubuntu 18.04. On the new page that comes up, select Get the app. On the next screen that comes up, select Get. You do not need to sign up with Microsoft. On the next screen, you may (optional) select “. . .” and Pin to Taskbar. You may also select Pin to Start. Then either select Launch or click on the icon just added to the task bar or Start menu. An Ubuntu screen will appear and make the announcement that the software is being installed (it does take several minutes). When asked, pick a user name and a password (the password must be entered twice).

If a prompt does not appear in a few minutes, hit the carriage return (it doesn't hurt to do that right away—the system will just wait).

When a prompt appears, enter the following commands:

sudo apt update

sudo apt install mpich

Ubuntu files are installed at /mnt/c/Users/Walt/AppData/Local/Packages/Canonical*, with your user name in place of Walt.

If you want, you can run

sudo apt upgrade

which also takes a while. It probably won't affect running CAF.

To install the coarrays library, enter the command:

git clone https://github.com/sourceryinstitute/opencoarrays.git

When the prompt reappears, type ls (list), the equivalent of Windows dir, to see that there is a directory (folder) opencorrays. Go to that directory by typing

cd opencoarrays

then to install the open coarrays library, type:

./install.sh -j 4

-j 4 says to run on four processors (change it if you have a different number or omit it if you want). This step also takes several minutes.

At the prompt, edit the file ~/.bashrc to add the following line at the end. It will tell Ubuntu where to find the executable programs caf and cafrun.

export PATH=~/opencoarrays/prerequisites/builds/opencoarrays/2.1.0/bin:$PATH


--
Walt Brainerd

Michael Siehl

unread,
Jul 8, 2018, 5:30:48 AM7/8/18
to OpenCoarrays
Thanks very much for sharing this.


Best Regards
Michael Siehl
Reply all
Reply to author
Forward
0 new messages