Testing the installation

To test the product installation and the critical search paths, build and run a sample application.

Basic example: Creating and running "Hello World"

  1. Create the following C program and name the source file hello.c:
    #include <stdio.h>
    int main(void)
    {
       printf("Hello World!\n");
       return 0;
    }
  2. Compile the program:
  3. To run the program, refer to the section "Running applications" in Blue Gene/L: Application Development.
  4. Create the following C++ program and name the source file hello.cpp:
    #include <iostream>
    int main()
    {
       std::cout << "Hello World!" << std::endl;
       return 0;
    }
  5. Compile the program:
  6. To run the program, refer to the section "Running applications" in Blue Gene/L: Application Development.