Created
January 31, 2012 22:42
-
-
Save zonca/1713546 to your computer and use it in GitHub Desktop.
Simple Trilinos build test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module swap PrgEnv-pgi PrgEnv-gnu | |
CC -g -o simpletest.o -I/opt/cray/trilinos/10.8.3.0/GNU/46/x86_64/include -c simpletest.cpp | |
CC -g simpletest.o -o simpletest -rdynamic -ltpetra_gnu -lkokkos_gnu -lkokkosnodeapi_gnu -ltpi_gnu -lteuchos_gnu -L/opt/cray/trilinos/10.8.3.0/GNU/46/x86_64/lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#gcc ubuntu | |
#mpicxx -g -o simpletest.o -I/usr/include/trilinos -c simpletest.cpp | |
#mpicxx -g simpletest.o -o simpletest -rdynamic -ltrilinos_tpetra -ltrilinos_teuchos -ltrilinos_kokkos -ltrilinos_kokkosnodeapi | |
#hopper | |
CC -g -o simpletest.o -I/opt/cray/trilinos/10.6.4.0/GNU/include -c simpletest.cpp | |
CC -g simpletest.o -o simpletest -rdynamic -ltpetra -lteuchos -lkokkos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "Teuchos_GlobalMPISession.hpp" | |
#include "Teuchos_oblackholestream.hpp" | |
#include "Tpetra_Map.hpp" | |
#include "Tpetra_DefaultPlatform.hpp" | |
#include <Kokkos_DefaultNode.hpp> | |
typedef Tpetra::DefaultPlatform::DefaultPlatformType Platform; | |
typedef Tpetra::DefaultPlatform::DefaultPlatformType::NodeType Node; | |
typedef Tpetra::Map<long,long,Node> Map; | |
int main(int argc, char *argv[]) { | |
Teuchos::oblackholestream blackhole; | |
Teuchos::GlobalMPISession mpiSession(&argc,&argv,&blackhole); | |
Platform &platform = Tpetra::DefaultPlatform::getDefaultPlatform(); | |
Teuchos::RCP<const Teuchos::Comm<int> > comm = platform.getComm(); | |
Teuchos::RCP<Node> node = platform.getNode(); | |
Teuchos::RCP<const Map> TpetraMap = Teuchos::rcp(new Map(1000, 0, comm)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment