Intel(R) - Computational and Systems Biology at MIT
Intel(R) - Computational and Systems Biology at MIT
Intel(R) - Computational and Systems Biology at MIT
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Language-specific Usage Options 7The Java example set includes JNI wrappers which perform the binding. The wrappers donot depend on the examples <strong>and</strong> may be used in your Java applic<strong>at</strong>ions. The wrappers forCBLAS, FFT, VML, VSL RNG, <strong>and</strong> ESSL-like convolution <strong>and</strong> correl<strong>at</strong>ion functions do notdepend on each other.To build the wrappers, just run the examples (see the Running the examples section fordetails). The makefile builds the wrapper binaries <strong>and</strong> the examples, invoked after th<strong>at</strong>,double-check if the wrappers are built correctly. As a result of running the examples, thefollowing directories will be cre<strong>at</strong>ed in/examples/java:• docs• include• classes• bin• _results .The directories docs, include, classes, <strong>and</strong> bin will contain the wrapper binaries <strong>and</strong>document<strong>at</strong>ion; the directory _results will contain the testing results.For a Java programmer, the wrappers look like the following Java classes:• com.intel.mkl.CBLAS• com.intel.mkl.DFTI• com.intel.mkl.ESSL• com.intel.mkl.VML• com.intel.mkl.VSLDocument<strong>at</strong>ion for the particular wrapper <strong>and</strong> example classes will be gener<strong>at</strong>ed from theJava sources during building <strong>and</strong> running the examples. To browse the document<strong>at</strong>ion,start from the index file in the docs directory which will be cre<strong>at</strong>ed by the build script:/examples/java/docs/index.html .The Java wrappers for CBLAS, VML, VSL RNG, <strong>and</strong> FFT establish the interface th<strong>at</strong> directlycorresponds to the underlying n<strong>at</strong>ive functions <strong>and</strong> you can refer to the <strong>Intel</strong> MKLReference Manual for their functionality <strong>and</strong> parameters. Interfaces for the ESSL-likefunctions are described in the gener<strong>at</strong>ed document<strong>at</strong>ion for the com.intel.mkl.ESSLclass.Each wrapper consists of the interface part for Java <strong>and</strong> JNI stub written in C. You can findthe sources in the following directory:/examples/java/wrappers .Both Java <strong>and</strong> C parts of the wrapper for CBLAS <strong>and</strong> VML demonstr<strong>at</strong>e the straightforwardapproach, which you may easily employ to cover missing CBLAS functions.7-11