Hi Matt, all,
I'm trying to find the cuda installation using the external packages
interface, but spack can't seem to find it.
I've tried depends_on(cuda) as well as depends_on(
cuda@6.0) and
played with the settings inside packages.yaml, but so far nothing
works.
So, I thought maybe I'd ask for help.
Thanks,
Jim G
spack install cbtf-argonavis
==> Error: Package cuda not found.
packages.yaml contents:
packages:
openmpi:
paths:
ope...@1.10.2%g...@4.8.3=Linux-x86_64: /opt/openmpi-1.10.2
cuda:
paths:
cuda@6.0%g...@4.8.3=Linux-x86_64: /usr/local/cuda-6.0
cuda%g...@4.8.3=Linux-x86_64: /usr/local/cuda-6.0
qt3:
paths:
q...@3.3.8%g...@4.8.3=Linux-x86_64: /usr/lib64/qt-3.3
cbtf-argonavis/package.py file contents:
from spack import *
class CbtfArgonavis(Package):
"""CBTF Argo Navis project contains the CUDA collector and
supporting
libraries that was done as a result of a DOE SBIR grant."""
homepage =
"http://sourceforge.net/p/cbtf/wiki/Home/"
# Mirror access template example
url =
"file:/home/jeg/OpenSpeedShop_ROOT/SOURCES/cbtf-argonavis-1.6.tar.gz"
version('1.6', '0fafa0008478405c2c2319450f174ed4')
#version('1.6', branch='master',
git='
http://git.code.sf.net/p/cbtf-argonavis/cbtf-argonavis')
depends_on(
"cm...@3.0.2:")
depends_on(
"bo...@1.57.0")
depends_on("papi")
depends_on(
"mr...@5.0.1")
depends_on("cbtf")
depends_on("cbtf-krell")
depends_on("cuda")
parallel = False
optimization_setting = "-g -O2"
build_type = 'None'
def install(self, spec, prefix):
# Look for package installation information in the cbtf and
cbtf-krell prefixes
cmake_prefix_path = join_path(spec['cbtf'].prefix) + ':' +
join_path(spec['cbtf-krell'].prefix)
with working_dir('CUDA'):
with working_dir('build', create=True):
cmake('..',
'-DCMAKE_BUILD_TYPE=%s' % build_type,
'-DCMAKE_CXX_FLAGS=%s' %
optimization_setting,
'-DCMAKE_C_FLAGS=%s' %
optimization_setting,
'-DCMAKE_INSTALL_PREFIX=%s' % prefix,
'-DCMAKE_PREFIX_PATH=%s' %
cmake_prefix_path,
'-DCUDA_DIR=%s' %
spec['cuda'].prefix,
'-DCUPTI_DIR=%s' %
join_path(spec['cuda'].prefix + '/extras/CUPTI'),
'-DCUPTI_ROOT=%s' %
join_path(spec['cuda'].prefix + '/extras/CUPTI'),
'-DPAPI_ROOT=%s' %
spec['papi'].prefix,
'-DCBTF_DIR=%s' %
spec['cbtf'].prefix,
'-DCBTF_KRELL_DIR=%s' %
spec['cbtf-krell'].prefix,
'-DBOOST_ROOT=%s' %
spec['boost'].prefix,
'-DBoost_DIR=%s' %
spec['boost'].prefix,
'-DBOOST_LIBRARYDIR=%s' %
spec['boost'].prefix.lib,
'-DMRNET_DIR=%s' %
spec['mrnet'].prefix,
'-DBoost_NO_SYSTEM_PATHS=ON',
*std_cmake_args)
make("clean")
make()
make("install")
[jeg@localhost cbtf-argonavis]$ lsr
/usr/local/cuda
0 lrwxrwxrwx. 1 root root 8 Oct 14 2014 /usr/local/cuda ->
cuda-6.0
[jeg@localhost cbtf-argonavis]$ lsr
/usr/local/cuda-6.0
total 60
4 drwxr-xr-x. 3 root root 4096 Apr 1 2014 targets
4 -rw-r--r--. 1 root root 365 Apr 1 2014 README
4 -rw-r--r--. 1 root root 365 Apr 1 2014 LICENSE
0 lrwxrwxrwx. 1 root root 28 Oct 14 2014 include ->
targets/x86_64-linux/include
0 lrwxrwxrwx. 1 root root 24 Oct 14 2014 lib64 ->
targets/x86_64-linux/lib
4 drwxr-xr-x. 8 root root 4096 Oct 14 2014 nvvm
4 drwxr-xr-x. 4 root root 4096 Oct 14 2014 open64
4 drwxr-xr-x. 2 root root 4096 Oct 14 2014 src
4 drwxr-xr-x. 8 root root 4096 Oct 14 2014 libnsight
4 drwxr-xr-x. 7 root root 4096 Oct 14 2014 libnvvp
4 drwxr-xr-x. 4 root root 4096 Oct 14 2014 extras
4 drwxr-xr-x. 2 root root 4096 Oct 14 2014 tools
4 drwxr-xr-x. 3 root root 4096 Oct 14 2014 bin
4 drwxr-xr-x. 13 root root 4096 Oct 14 2014 .
4 drwxr-xr-x. 12 root root 4096 Oct 14 2014 samples
4 drwxr-xr-x. 5 root root 4096 Oct 14 2014 doc
4 drwxr-xr-x. 17 root root 4096 Dec 21 14:12 ..