diff options
author | Kevin Huck <khuck@cs.uoregon.edu> | 2015-10-22 08:03:50 -0700 |
---|---|---|
committer | Kevin Huck <khuck@cs.uoregon.edu> | 2015-10-22 08:03:50 -0700 |
commit | caf93cc4080703b80d5c622370b8094c37bf014f (patch) | |
tree | fe9a856040e44f88d4007f265d9a8e600592de3e /var | |
parent | 24838a62b44110fa386e404e0e41689a5182e911 (diff) | |
download | spack-caf93cc4080703b80d5c622370b8094c37bf014f.tar.gz spack-caf93cc4080703b80d5c622370b8094c37bf014f.tar.bz2 spack-caf93cc4080703b80d5c622370b8094c37bf014f.tar.xz spack-caf93cc4080703b80d5c622370b8094c37bf014f.zip |
Adding package for OMPT support in the LLVM/Clang OpenMP runtime,
which gives OMPT support for applications built with GCC, Intel or
LLVM/Clang.
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/packages/ompt-openmp/package.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/var/spack/packages/ompt-openmp/package.py b/var/spack/packages/ompt-openmp/package.py new file mode 100644 index 0000000000..5d380ebd77 --- /dev/null +++ b/var/spack/packages/ompt-openmp/package.py @@ -0,0 +1,23 @@ +from spack import * + +class OmptOpenmp(Package): + """LLVM/Clang OpenMP runtime with OMPT support. This is a fork of the OpenMPToolsInterface/LLVM-openmp fork of the official LLVM OpenMP mirror. This library provides a drop-in replacement of the OpenMP runtimes for GCC, Intel and LLVM/Clang.""" + homepage = "https://github.com/OpenMPToolsInterface/LLVM-openmp" + url = "http://github.com/khuck/LLVM-openmp/archive/v0.1-spack.tar.gz" + + version('spack', '35227b2726e377faa433fc841226e036') + + # depends_on("foo") + + def install(self, spec, prefix): + with working_dir("runtime/build", create=True): + + # FIXME: Modify the configure line to suit your build system here. + cmake('-DCMAKE_C_COMPILER=%s' % self.compiler.cc, + '-DCMAKE_CXX_COMPILER=%s' % self.compiler.cxx, + '-DCMAKE_INSTALL_PREFIX=%s' % prefix, + '..', *std_cmake_args) + + # FIXME: Add logic to build and install here + make() + make("install") |