Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Much Anticipated Camp Docs #158

Merged
merged 44 commits into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from 25 commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
4ba1fc8
Add high-level documentation templates to CAMP.
long58 Jul 19, 2024
47fbbe1
Merge branch 'main' of github.com:LLNL/camp into feature/long58/docum…
long58 Jul 19, 2024
f26de31
add readthedocs.yml
long58 Jul 24, 2024
6b437c5
Added new sphinx pages
long58 Oct 4, 2024
368182d
Adds docs for various camp features.
long58 Nov 7, 2024
c197b93
changes to index
kab163 Nov 8, 2024
93323cf
making edits to resources
kab163 Nov 8, 2024
f8f0985
adding dev guide docs
kab163 Nov 8, 2024
bcb4078
more dev guide edits
kab163 Nov 8, 2024
64ff118
adding examples
kab163 Nov 8, 2024
da88d2e
fix typo
kab163 Nov 8, 2024
527b3bb
adding to resource docs
kab163 Nov 8, 2024
a8d5541
Adding to resource docs
kab163 Nov 8, 2024
29c5a93
more edits
kab163 Nov 8, 2024
c728319
Adds some more pages for the docs
long58 Nov 9, 2024
2034396
Merge branch 'feature/long58/documentation' of github.com:LLNL/camp i…
long58 Nov 9, 2024
3b60dc2
fixes small errors from previous commit
long58 Nov 9, 2024
928449c
fix spelling errors and add links
kab163 Nov 11, 2024
00cbc38
fix typo
kab163 Nov 11, 2024
69f5d38
Add camp logo to docs
rhornung67 Nov 11, 2024
8a46f7c
Merge branch 'kab163/long58/camp-docs' of github.com:LLNL/camp into k…
rhornung67 Nov 11, 2024
c77da0a
Fix indentation
rhornung67 Nov 11, 2024
5b281f1
adding more info on resources
kab163 Nov 11, 2024
3f428e3
Merge branch 'kab163/long58/camp-docs' of https://github.com/LLNL/cam…
kab163 Nov 11, 2024
9203b45
updates to readme and fix typos
kab163 Nov 11, 2024
bbe6204
fix typo
kab163 Nov 11, 2024
387f8ad
Apply suggestions from code review
kab163 Nov 11, 2024
842dbc6
Using 'Camp' instead of 'CAMP'
kab163 Nov 11, 2024
ffbe06d
Apply suggestions from code review
kab163 Nov 11, 2024
f8f0a17
Apply suggestions from code review
kab163 Nov 11, 2024
e9ba8dc
making camp vs Camp consistent
kab163 Nov 12, 2024
863f154
Apply suggestions from code review
kab163 Nov 12, 2024
33f2592
Apply suggestions from code review
kab163 Nov 13, 2024
f13f813
Fixes based on PR feedback.
long58 Nov 18, 2024
00d3923
More fixes based on PR comments
long58 Nov 20, 2024
65a41f8
Merge branch 'main' into kab163/long58/camp-docs
rhornung67 Nov 25, 2024
1b71442
Match doc version with last release version
rhornung67 Nov 25, 2024
b3e826d
Add kernel launch params to correctly wait on event
rhornung67 Nov 25, 2024
1f24906
minor fixes to resource doc
kab163 Nov 26, 2024
b82697d
adding docs about eventproxy
kab163 Nov 26, 2024
9c1c691
Adding more to the Using Camp page
kab163 Nov 26, 2024
94592b8
tuple example
kab163 Nov 26, 2024
9127657
review fixes and typo fixes
kab163 Nov 26, 2024
87998da
fixing typos
kab163 Nov 26, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# .readthedocs.yml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Set the version of Python and other tools you might need
build:
os: ubuntu-22.04
tools:
python: "3.11"
apt_packages:
- ghostscript
- texlive-full

##
## Code for debugging directory structure in readthedocs
## to fix broken links, etc.
##
# Print tree
#build:
# os: ubuntu-20.04
# apt_packages:
# - tree
# tools:
# python: "3.7"
# jobs:
# post_build:
# - tree -J

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/conf.py

# Optionally build docs in add'l formats such as PDF and ePub
#formats: all

# Set requirements needed to build the docs
python:
install:
- requirements: docs/requirements.txt
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ set(CMAKE_CXX_EXTENSIONS OFF)
include(cmake/load_blt.cmake)


cmake_dependent_option(CAMP_ENABLE_DOCUMENTATION "Build Docs" Off "ENABLE_DOCS" Off)
cmake_dependent_option(CAMP_ENABLE_TESTS "Build tests" On "ENABLE_TESTS" Off)

# if ENABLE_TESTS is defined by a parent project, and
Expand Down Expand Up @@ -190,3 +191,7 @@ if(CAMP_ENABLE_TESTS)
add_subdirectory(test)
endif()

if(CAMP_ENABLE_DOCUMENTATION)
add_subdirectory(docs)
endif()

14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# <img src="/share/raja/logo/camp2-gradient.png" width="128" valign="middle" alt="Camp"/>

## CAMP Concepts And Meta-Programming library

This project collects a variety of macros and metaprogramming facilities for C++
projects. It's in the direction of projects like metal (a major influence) but
with a focus on wide compiler compatibility across HPC-oriented systems.
CAMP is a C++ Meta-Programming library which provides HPC compiler compatability
and portability abstractions. This project is a collection of various macros and
metaprogramming facilities and is part of the RAJA Portability Suite.
With projects like METAL as a major influence, CAMP focuses on wide compiler
compatibility across HPC-oriented systems.

See Documentation on ReadTheDocs, including User and Contributor Guides.

If you have questions, email [email protected].
17 changes: 17 additions & 0 deletions cmake/FindSphinx.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
###############################################################################
# Copyright (c) 2016-24, Lawrence Livermore National Security, LLC
# and other RAJA project contributors. See the RAJA/LICENSE file for details.
#
# SPDX-License-Identifier: (BSD-3-Clause)
###############################################################################

find_program(SPHINX_EXECUTABLE
NAMES sphinx-build sphinx-build2
DOC "Path to sphinx-build executable")

# Handle REQUIRED and QUIET arguments
# this will also set SPHINX_FOUND to true if SPHINX_EXECUTABLE exists
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(Sphinx
"Failed to locate sphinx-build executable"
SPHINX_EXECUTABLE)
25 changes: 25 additions & 0 deletions docs/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
###############################################################################
# Copyright (c) 2016-18, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory
# Maintained by Tom Scogland <[email protected]>
# CODE-756261, All rights reserved.
# This file is part of camp.
# For details about use and distribution, please read LICENSE and NOTICE from
# http://github.com/llnl/camp
###############################################################################

if (CAMP_ENABLE_DOCUMENTATION)
if (SPHINX_FOUND)
message(STATUS "Found Sphinx")
blt_add_sphinx_target( camp_docs )
endif()

if (DOXYGEN_FOUND)
add_subdirectory(doxygen)
endif()

if ( NOT SPHINX_FOUND AND NOT DOXGEN_FOUND)
message(WARNING "CAMP_ENABLE_DOCUMENTATION=On, but Sphinx or Doxygen not found. \
Documentation won't be built.")
endif ()
endif()
Loading