HPMC User Guide v 1.00
© 2026 Bassem W. Jamaleddine
Each HPMC is the host to a MIC coprocessor. Usually the programmer writes his code on the host, compiles it, then runs it by offloading the program to the MIC. Although the MIC does not have the compiler installed on it, however, the shared libraries required by the program need to be available on the MIC. We will show how to use NFS to make these libraries visible on the MIC.
As for programming, it is simpler to edit your programs on the host than it is on the MIC. The MIC has a limited vi editor that is convenient to make changes in a file, while the host has many editors that can highlight program language syntax. In addition, various versions and distributions of compilers can be sourced in a bash session on the host.
We will write and compile programs on the host, and later on we will either offload them to the MIC, or run them natively on the MIC, or have them available in a directory on the MIC where we can execute them.
In this chapter, you will first see how to manage the hostnames refering to your HPMCs and MICs, then how to use NFS to mount directories on the MICs.
■ The HPMC hostname and its MIC hostname
Each MIC on the HPMC must be accessible from the local host machine (the HPMC itself) as being mic0, and it should be accessible from other HPMCs by prefixing the hostname (the name of the host where the MIC is being served) as a prefix to 'mic0'. Pay special attention to the /etc/hosts of the HPMC where the alias of mic0.local must represent the IP address of the local MIC on the current HPMC
This section is not included in the SAMPLE PREVIEW.
■ The /etc/hosts of the MIC
Since the MIC is used as a computation agent where we will offload the runtime of a program, there is no need to make changes to its /etc/hosts. However, if you want to make changes to the MIC /etc/hosts file then pay attention on properly keeping the mic0 alias mapped to the MIC IP address.
This is simply realized by having for each MIC /var/mpss/mic0/etc/hosts reflecting the proper host name.
This means the /var/mpss/mic0/etc/hosts for each MIC differs when pointing to their mic0.local. For example, the following shows the hosts file for HPMC9's MIC. Compare it to HPMC7's MIC show below..
This section is not included in the SAMPLE PREVIEW.
Any change made in any administrative file of the MIC, in its mapped
directory on the host, for example /var/mpss/mic0/etc/hosts, won't
be reflected in the MIC's unless mpss is restarted:
# systemctl restart mpss
directory on the host, for example /var/mpss/mic0/etc/hosts, won't
be reflected in the MIC's unless mpss is restarted:
# systemctl restart mpss
■ Accessing The MIC From Anywhere on Your Network
If you have id_rsa.pub in your ~/.ssh directory, if not then create one using ssh-keygen on the current machine. Say, we are on machine skublue and we want to have access to HPMC9's MIC whose hostname is hpmc9mic0. We will cat the id_rsa.pub to the HPMC9 /var/mpss/mic0/root/.ssh/authorized_keys
# 01:08 root@skyblue: ~/.ssh # cat ~/.ssh/id_rsa.pub | ssh root@hpmc9 'cat >> /var/mpss/mic0/root/.ssh/authorized_keys'
01:28 root@HPMC9: ~ # systemctl restart mpss
01:20 root@skyblue: ~/.ssh # ssh hpmc9mic0
(uos/HPMC9) 01:30 root@mic0: ~ #
■ Sharing Directories using NFS
NFS is the simplest solution to share directory between the host and the MIC.
We want to export some directories on the host hpmc9 over NFS so that we can mount them on the MIC. On hpmc9 we will export the directories over NFS by editing the file /etc/exports:
This section is not included in the SAMPLE PREVIEW.