Changes between Initial Version and Version 1 of KaRMI/GM


Ignore:
Timestamp:
08/20/05 15:16:03 (8 years ago)
Author:
hauma
Comment:

Initial version from legacy page.

Legend:

Unmodified
Added
Removed
Modified
  • KaRMI/GM

    v1 v1  
     1= Myrinet/GM Support for KaRMI =  
     2[[TracNav]] 
     3 
     4== Introduction ==  
     5 
     6Myrinet is a high performance network hardware from Myricom. There are several software packages to access this network hardware from user level applications. The "default" library that is bundled with the hardware is called GM. JavaParty supports Myrinet hardware by providing a native library that is linked with the GM library from Myricom. To use Myrinet, you will need the KaRMI version (rather than the RMI version) of JavaParty, because Myrinet is supported only by KaRMI as additional network technology. 
     7 
     8== Compile Myrinet/GM support == 
     9 
     10The sources for the native library can be found in the KaRMI or JavaParty distribution within the archive karmi-src.zip. It contains another archive in its top-level directory named: 
     11 
     12{{{ 
     13gmlib.tgz 
     14}}} 
     15 
     16If you have all essential tools for building projects based on GNU automake and autoconf, you can build the library with the following commands: 
     17 
     18{{{ 
     19./configure --prefix=<where-to-install-the-library> 
     20make 
     21make install 
     22}}} 
     23 
     24Make sure that you have set your CPPFLAGS environment variable in such a way that the compiler can find the header files of both, the Java JNI and GM. Also, do not forget to set the LDFLAGS environment variable such that the linker will find the GM library installed on your system. Assuming csh or tcsh as shell, you might have to enter something as follows: 
     25 
     26{{{ 
     27setenv CPPFLAGS "-I/usr/jdk-1.3/include \ 
     28                 -I/usr/jdk-1.3/include/linux \ 
     29                 -I/opt/myricom/gm-1.4/include" 
     30 
     31setenv LDFLAGS  "-I/opt/myricom/gm-1.4/lib" 
     32}}} 
     33 
     34== JavaParty over GM ==  
     35 
     36To use JavaParty with Myrinet over the GM library, you just have to include in your LD_LIBRARY_PATH environment variable the directory where you installed the native library in the previous step. 
     37 
     38To verify that everything works fine, you can probe whether the Myrinet technology is detected by KaRMI: 
     39 
     40{{{ 
     41java -jar jar/karmi.jar 
     42}}} 
     43 
     44If everything works as expected, you should at least get the following output: 
     45 
     46{{{ 
     47Log messages during initialization: 
     48------------------------------------------------------------------- 
     49initializing 1. technology: uka.karmi.gm.GMTechnology 
     50initialization successful. 
     51 
     52initializing 3. technology: uka.karmi.socket.SocketTechnology 
     53initialization successful. 
     54------------------------------------------------------------------- 
     55}}} 
     56 
     57Note: Due to a limitation in KaRMI, at the moment only a single Java virtual machine per cluster node can use the Myrinet hardware at a time. If you start more than one VM per node, all surplus VMs will communicate over regular TCP/IP. See also the "Bug Parade" section.