13.07.2015 Views

Intel(R) - Computational and Systems Biology at MIT

Intel(R) - Computational and Systems Biology at MIT

Intel(R) - Computational and Systems Biology at MIT

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

7 <strong>Intel</strong>® M<strong>at</strong>h Kernel Library User’s Guide<strong>Intel</strong> MKL Java examplesJava was positioned by its inventor, the Sun Microsystems Corpor<strong>at</strong>ion as "Write Once RunAnywhere" (WORA) language. <strong>Intel</strong> MKL may help to speed-up Java applic<strong>at</strong>ions, theWORA philosophy being partially supported, as <strong>Intel</strong> MKL editions are intended for widevariety of oper<strong>at</strong>ing systems <strong>and</strong> processors covering most kinds of laptops <strong>and</strong> desktops,many workst<strong>at</strong>ions <strong>and</strong> servers.To demonstr<strong>at</strong>e binding with Java, <strong>Intel</strong> MKL includes the set of Java examples found in thefollowing directory:/examples/java .The examples are provided for the following MKL functions:• the ?gemm, ?gemv, <strong>and</strong> ?dot families from CBLAS• complete set of non-cluster FFT functions• ESSL 1 -like functions for 1-dimensional convolution <strong>and</strong> correl<strong>at</strong>ion.• VSL R<strong>and</strong>om Number Gener<strong>at</strong>ors (RNG), except user-defined ones <strong>and</strong> filesubroutines.• VML functions, except GetErrorCallBack, SetErrorCallBack, <strong>and</strong>ClearErrorCallBack.You can see the example sources in the following directory:/examples/java/examples .The examples are written in Java. They demonstr<strong>at</strong>e usage of the MKL functions with thefollowing variety of d<strong>at</strong>a:• 1- <strong>and</strong> 2-dimensional d<strong>at</strong>a sequences• real <strong>and</strong> complex types of the d<strong>at</strong>a• single <strong>and</strong> double precision.However, note th<strong>at</strong> the wrappers, used in examples, do not• demonstr<strong>at</strong>e the use of huge arrays (>2 billion elements)• demonstr<strong>at</strong>e processing of arrays in n<strong>at</strong>ive memory• check correctness of function parameters• demonstr<strong>at</strong>e performance optimiz<strong>at</strong>ionsTo bind with <strong>Intel</strong> MKL, the examples use the Java N<strong>at</strong>ive Interface (JNI* developerframework). The JNI document<strong>at</strong>ion to start with is available fromhttp ://java .sun .com/j2se/1.5.0/docs/guide/jni/index. html .1. IBM Engineering Scientific Subroutine Library (ESSL*).7-10

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!