Friday, December 7, 2012

Fee foo #phi fum!

So many levels of awesome since I was at SC last year:

http://blog.jcuff.net/2011/11/disruptive-things-spotted-so-far-at.html

those first pictures are now real product Check it out... it is a real living thing... I'm not going to discuss benchmarks or other details until this is fully public but happy to say as James said, you can do a lot with this stuff!. Have to thank Brian on our Intel account team for helping get this into our hands. You can learn more here.

Turns out Tommy was also right :-)

[jcuff@mic01 intro_sampleC]$ source /opt/intel/bin/iccvars.sh intel64

[jcuff@mic01 intro_sampleC]$ make mic
icc -openmp -c sampleC00.c -o sampleC00.o
icc -openmp -c sampleC01.c -o sampleC01.o
icc -openmp -c sampleC02.c -o sampleC02.o
icc -openmp -c sampleC03.c -o sampleC03.o
icc -openmp -c sampleC04.c -o sampleC04.o
icc -openmp -c sampleC05.c -o sampleC05.o
icc -openmp -c sampleC06.c -o sampleC06.o
icc -openmp -c sampleC07.c -o sampleC07.o
icc -openmp -c sampleC08.c -o sampleC08.o
icc -openmp -c sampleC09.c -o sampleC09.o
icc -openmp -c sampleC09_callee.c -o sampleC09_callee.o
icc -openmp -c sampleC10.c -o sampleC10.o
icc -openmp -c sampleC11.c -o sampleC11.o
icc -openmp -c sampleC12.c -o sampleC12.o
icc -openmp -c sampleC13.c -o sampleC13.o
icc -openmp -c sampleC14.c -o sampleC14.o
icc -openmp -c sampleC_driver.c -o sampleC_driver.o
icc sampleC00.o sampleC01.o sampleC02.o sampleC03.o sampleC04.o sampleC05.o sampleC06.o sampleC07.o sampleC08.o sampleC09.o sampleC09_callee.o sampleC10.o sampleC11.o sampleC12.o sampleC13.o sampleC14.o sampleC_driver.o -openmp -o intro_sampleC.out
....
Build complete
Run : intro_sampleC.out


[jcuff@mic01 intro_sampleC]$ ./intro_sampleC.out
Samples started
Checking for Intel(R) MIC Architecture (Target CPU) devices...

Number of Target devices installed: 1

Offload sections will execute on: Target CPU (offload mode)

PASS Sample01
PASS Sample02
PASS Sample03
PASS Sample04
PASS Sample05
PASS Sample06
PASS Sample07
PASS Sample08
PASS Sample09
PASS Sample10
PASS Sample11
PASS Sample12
PASS Sample13
PASS Sample14
Samples complete


Yep, samples work, let us try a spot of math...
[jcuff@mic01 LEO_tutorial]$ ./tbo_sort.out

C/C++ Tutorial: Offload Demonstration

Checking for Intel(R) MIC Architecture (Target CPU) devices...

Number of Target devices installed: 1

Unsorted original values...first twenty (20) values:
Evens and Odds:
1 2 3 4 5 6 7 8 9 10
11 12 13 14 15 16 17 18 19 20

Sorted results...first ten (10) values each:
Evens: 2 4 6 8 10 12 14 16 18 20
Odds : 1 3 5 7 9 11 13 15 17 19
Primes: 2 3 5 7 11 13 17 19 23

Q.E.D.


[any opinions here are all mine, and have absolutely nothing to do with my employer]
(c) 2011 James Cuff