Using a VPS (Virtual Private Server) in the cloud as a build machine has benefits. For example, I don’t have to pay the electricity bills and I have an access to a fresh build from all around the world.
I used the following steps to set up my build system on a new VPS.
1. Download Intel® Cluster Studio XE
I downloaded my copy of Intel® Cluster Studio XE 2013 SP1 Update 1 from the Intel® Software Development Products Registration Center (IRC) .
[user01@test-2 ~]$ wget http://registrationcenter.intel.com/irc_nas/3918/l_ics_2013.1.046_intel64.tgz --2014-06-23 03:58:01-- http://registrationcenter.intel.com/irc_nas/3918/l_ics_2013.1.046_intel64.tgz Resolving registrationcenter.intel.com... 198.175.96.34 Connecting to registrationcenter.intel.com|198.175.96.34|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 2672369932 (2.5G) [application/x-compressed] Saving to: “l_ics_2013.1.046_intel64.tgz” 100%[====================================>] 2,672,369,932 266K/s in 1h 51m 2014-06-23 05:49:03 (392 KB/s) - “l_ics_2013.1.046_intel64.tgz” saved [2672369932/2672369932]
2. Try to install it
I unpacked it
[user01@test-2 ~]$ tar -xzf ./l_ics_2013.1.046_intel64.tgz
and tried to install by running the install.sh script.
[user01@test-2 ~]$ cd l_ics_2013.1.046_intel64 [user01@test-2 l_ics_2013.1.046_intel64]$ ./install.sh CPU is not supported.
Unfortunately, the Intel® Cluster Studio XE installer doesn’t recognize the CPU.
[user01@test-2 l_ics_2013.1.046_intel64]$ cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 2 model name : QEMU Virtual CPU version 1.0 stepping : 3 cpu MHz : 2399.998 cache size : 4096 KB fpu : yes fpu_exception : yes cpuid level : 4 wp : yes flags : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm up rep_good unfair_spinlock pni vmx cx16 popcnt hypervisor lahf_lm bogomips : 4799.99 clflush size : 64 cache_alignment : 64 address sizes : 40 bits physical, 48 bits virtual power management:
3. Use --ignore-cpu flag
I used the --ignore-cpu flag to tell the installer not to check the system CPU.
[user01@test-2 l_ics_2013.1.046_intel64]$ ./install.sh --ignore-cpu Please make your selection by entering an option. Root access is recommended for evaluation. 1. Run as a root for system wide access for all users [default] 2. Run using sudo privileges and password for system wide access for all users 3. Run as current user to limit access to user level h. Help q. Quit … Step 6 of 7 | Installation -------------------------------------------------------------------------------- Each component will be installed individually. If you cancel the installation, some components might remain on your system. This installation may take several minutes, depending on your system and the options you selected. -------------------------------------------------------------------------------- Installing Intel(R) MPI Library, Runtime Environment for applications running on Intel(R) 64 Architecture component... done -------------------------------------------------------------------------------- Installing Intel(R) MPI Library, Runtime Environment for applications running on Intel(R) Many Integrated Core Architecture component... done -------------------------------------------------------------------------------- Installing Intel(R) MPI Library for applications running on Intel(R) 64 Architecture component... done -------------------------------------------------------------------------------- Installing Intel(R) MPI Library for applications running on Intel(R) Many Integrated Core Architecture component... done -------------------------------------------------------------------------------- Installing Intel(R) Trace Analyzer for Intel(R) 64 Architecture component... done -------------------------------------------------------------------------------- Installing Intel(R) Trace Collector for Intel(R) 64 Architecture component... done -------------------------------------------------------------------------------- Installing Intel(R) Trace Collector for Intel(R) Many Integrated Core Architecture component... done -------------------------------------------------------------------------------- Installing Command line interface component... done -------------------------------------------------------------------------------- Installing Sampling Driver kit component... done -------------------------------------------------------------------------------- Installing Power Driver kit component... done -------------------------------------------------------------------------------- Installing Graphical user interface component... done -------------------------------------------------------------------------------- Installing Command line interface component... done -------------------------------------------------------------------------------- Installing Graphical user interface component... done -------------------------------------------------------------------------------- Installing Command line interface component... done -------------------------------------------------------------------------------- Installing Graphical user interface component... done -------------------------------------------------------------------------------- Installing Intel Fortran Compiler XE for Intel(R) 64 component... done -------------------------------------------------------------------------------- Installing Intel C++ Compiler XE for Intel(R) 64 component... done -------------------------------------------------------------------------------- Installing Intel Debugger for Intel(R) 64 component... done -------------------------------------------------------------------------------- Installing Intel MKL core libraries for Intel(R) 64 component... done -------------------------------------------------------------------------------- Installing Intel(R) Xeon Phi(TM) coprocessor support component... done -------------------------------------------------------------------------------- Installing Fortran 95 interfaces for BLAS and LAPACK for Intel(R) 64 component... done -------------------------------------------------------------------------------- Installing GNU* Compiler Collection support for Intel(R) 64 component... done -------------------------------------------------------------------------------- Installing Cluster support for Intel(R) 64 component... done -------------------------------------------------------------------------------- Installing Intel IPP single-threaded libraries for Intel(R) 64 component... done -------------------------------------------------------------------------------- Installing Intel TBB component... done -------------------------------------------------------------------------------- Installing GNU* GDB 7.5 on Intel(R) 64 (Provided under GNU General Public License v3) component... done -------------------------------------------------------------------------------- Installing GDB Eclipse* Integration on Intel(R) 64 (Provided under Eclipse Public License v.1.0) component... done -------------------------------------------------------------------------------- Installing Intel(R) MPI Benchmarks component... done -------------------------------------------------------------------------------- Finalizing product configuration... -------------------------------------------------------------------------------- Preparing driver configuration scripts... done -------------------------------------------------------------------------------- Press "Enter" key to continue
4. Test the installation
The installer has completed, so now I simply need to test an MPI application and ensure basic functionality.
[user01@test-2 ~]$ . ~/intel/composerxe/bin/compilervars.sh intel64 [user01@test-2 ~]$ . ~/intel/impi/4.1.3.048/intel64/bin/mpivars.sh [user01@test-2 ~]$ mpiicc ~/intel/impi/4.1.3.048/test/test.c -o test [user01@test-2 ~]$ mpirun -n 2 -host `hostname -I` ./test Hello world: rank 0 of 2 running on test-2 Hello world: rank 1 of 2 running on test-2