Skip to content
This repository has been archived by the owner on Jul 31, 2024. It is now read-only.

Commit

Permalink
Merge pull request #33 from NERSC/develop
Browse files Browse the repository at this point in the history
Update conf.py and .spack/package.py
  • Loading branch information
jrmadsen authored Dec 30, 2019
2 parents b36b167 + 31895d5 commit b2a0c76
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
12 changes: 9 additions & 3 deletions .spack/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ class Timemory(CMakePackage):

version('master', branch='master', submodules=True)
version('develop', branch='develop', submodules=True)
version('3.0.0', commit='b36b1673b2c6b7ff3126d8261bef0f8f176c7beb',
submodules=True)

variant('python', default=True, description='Enable Python support')
variant('mpi', default=False, description='Enable MPI support')
Expand Down Expand Up @@ -49,26 +51,30 @@ class Timemory(CMakePackage):
depends_on('caliper', when='+caliper')
depends_on('gperftools', when='+gperftools')

conflicts('+cupti', when='~cuda', msg='CUPTI requires CUDA')

def cmake_args(self):
spec = self.spec

# Use spack install of Caliper instead of internal build
# Use spack install of Caliper and/or GOTCHA
# instead of internal submodule build
args = [
'-DTIMEMORY_BUILD_GOTCHA=OFF',
'-DTIMEMORY_BUILD_CALIPER=OFF',
'-DTIMEMORY_BUILD_TOOLS=ON',
'-DTIMEMORY_BUILD_GTEST=OFF',
'-DTIMEMORY_BUILD_EXAMPLES=OFF',
'-DTIMEMORY_BUILD_TESTING=OFF',
'-DTIMEMORY_BUILD_EXTRA_OPTIMIZATIONS=ON',
'-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=ON',
]

if '+python' in spec:
args.append('-DPYTHON_EXECUTABLE={0}'.format(
spec['python'].command.path))
args.append('-DTIMEMORY_USE_PYTHON=ON')
args.append('-DTIMEMORY_BUILD_PYTHON=ON')
args.append('-DTIMEMORY_TLS_MODEL=global-dynamic')
else:
args.append('-DTIMEMORY_USE_PYTHON=OFF')
args.append('-DTIMEMORY_BUILD_PYTHON=OFF')

if '+caliper' in spec:
Expand Down
15 changes: 7 additions & 8 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,14 @@ def install(package):

if not os.path.exists(_bindir):
os.makedirs(_bindir)
os.chdir(_bindir)
sp.run(["cmake",
"-DTIMEMORY_BUILD_DOCS=ON", "-DENABLE_DOXYGEN_HTML_DOCS=ON",
"-DENABLE_DOXYGEN_LATEX_DOCS=OFF", "-DENABLE_DOXYGEN_MAN_DOCS=OFF",
_srcdir])
sp.run(["cmake", "--build", os.getcwd(), "--target", "doc"])
# if os.path.exists(_doxdir):
# shutil.rmtree(_doxdir)

if not os.path.exists(_doxdir):
os.chdir(_bindir)
sp.run(["cmake",
"-DTIMEMORY_BUILD_DOCS=ON", "-DENABLE_DOXYGEN_HTML_DOCS=ON",
"-DENABLE_DOXYGEN_LATEX_DOCS=OFF", "-DENABLE_DOXYGEN_MAN_DOCS=OFF",
_srcdir])
sp.run(["cmake", "--build", os.getcwd(), "--target", "doc"])
shutil.copytree(_doxbin, _doxdir)

install('mkdocs-cinder')
Expand Down

0 comments on commit b2a0c76

Please sign in to comment.