File: install.txt

package info (click to toggle)
massivethreads 1.02-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 13,924 kB
  • sloc: ansic: 27,814; sh: 4,559; cpp: 3,334; javascript: 1,799; makefile: 1,745; python: 523; asm: 373; perl: 118; lisp: 9
file content (85 lines) | stat: -rw-r--r-- 2,344 bytes parent folder | download
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
== Basics ==

Installation should be the usual procedure of configure, make, and
make install.  Below, we describe how to compile it for XeonPhi (MIC).

MassiveThreads has been successfully compiled with:

 * gcc on x86_64
 * icc on x86_64
 * gcc in MPSS on XoenPhi (cross compilation)
 * icc in MPSS on XoenPhi (cross compilation)
 * gcc on Fujitsu FX10 (SPARC)

== Installation for x86 ==

  ./configure
  make
  make install

should just work

== Installation for XeonPhi (a.k.a. KNC, Intel MIC) ==

There are two ways to compile it for MIC.  One is by using gcc
packaged in MPSS; the other is by using Intel C compiler (icc).
The former is free, but currently does not support vectorization
on MIC.  

=== Using gcc (MPSS) ===

 * Install MPSS (http://software.intel.com/en-us/articles/intel-manycore-platform-software-stack-mpss)
 * Once you install it, you should have $(MPSS)/linux-k1om-4.7/bin/x86_64-k1om-linux-gcc, where MPSS is the directory you install it in.
 * include $(MPSS)/linux-k1om-4.7/bin so configure can find it. e.g.

  $ export PATH=~/linux-k1om-4.7/bin:$PATH

 * then run configure with the appropriate --host and --build argument to let it know it's a cross compilation

  $ ./configure --build=x86_64-unknown-linux-gnu --host=x86_64-k1om-linux

 * it should find $(MPSS)/linux-k1om-4.7/bin/x86_64-k1om-linux-gcc as the C comipler

 * rest of the steps is the same.

  $ make
  $ make install

=== Using icc ===

 * include the directory in which you find icc in your PATH. e.g.,

  $ export PATH=/opt/intel/composer_xe_2013.0.079/bin/intel64:$PATH

 * make sure your icc supports -mmic option

  $ icc -help | grep mmic
  -mmic     build an application that runs natively on Intel(R) MIC Architecture
  export PATH=~/linux-k1om-4.7/bin:$PATH

 * just add CC=icc and CFLAGS=-mmic when you run configure.  it should find icc as the C compiler.

  $ CC=icc CFLAGS=-mmic ./configure --build=x86_64-unknown-linux-gnu --host=x86_64-k1om-linux
 
 * rest of the steps is the same.

  $ make
  $ make install

== Installation for FX10 (SPARCv9 architecture) ==
  
 * Enter interactive mode on one computing node
   
  $ pjsub --interact

 * Enable GCC-4.6.1 on FX10
  
  $ module unload TCSuite
  $ module load GCC/4.6.1
  $ module load gdb/6.6

 * rest of the steps is the same.
  
  $ ./configure
  $ make
  $ make install