Skip to content

Commit

Permalink
Merge pull request #44 from PrincetonUniversity/devel
Browse files Browse the repository at this point in the history
Devel
  • Loading branch information
Rohit-Kakodkar authored Mar 13, 2023
2 parents 552c8e6 + 1b73396 commit 06b2b42
Show file tree
Hide file tree
Showing 211 changed files with 18,867 additions and 120 deletions.
46 changes: 46 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
# BasedOnStyle: LLVM
AccessModifierOffset: -2
ConstructorInitializerIndentWidth: 4
AlignEscapedNewlinesLeft: false
AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AlwaysBreakTemplateDeclarations: false
AlwaysBreakBeforeMultilineStrings: false
BreakBeforeBinaryOperators: false
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: false
BinPackParameters: true
ColumnLimit: 80
ConstructorInitializerAllOnOneLineOrOnePerLine: false
DerivePointerBinding: false
ExperimentalAutoDetectBinPacking: false
IndentCaseLabels: false
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
ObjCSpaceBeforeProtocolList: true
PenaltyBreakBeforeFirstCallParameter: 19
PenaltyBreakComment: 60
PenaltyBreakString: 1000
PenaltyBreakFirstLessLess: 120
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 60
PointerBindsToType: false
SpacesBeforeTrailingComments: 1
Cpp11BracedListStyle: false
Standard: Cpp03
IndentWidth: 2
TabWidth: 8
UseTab: Never
BreakBeforeBraces: Attach
IndentFunctionDeclarationAfterType: false
SpacesInParentheses: false
SpacesInAngles: false
SpaceInEmptyParentheses: false
SpacesInCStyleCastParentheses: false
SpaceAfterControlStatementKeyword: true
SpaceBeforeAssignmentOperators: true
ContinuationIndentWidth: 4
...
5 changes: 0 additions & 5 deletions .firebaserc

This file was deleted.

29 changes: 0 additions & 29 deletions .github/workflows/build-docs-on-PR.yml

This file was deleted.

52 changes: 52 additions & 0 deletions .github/workflows/compilation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Build

on: [push, pull_request]

jobs:
build-serial:
runs-on: ubuntu-latest
steps:
- name: Check GNU and Cmake versions
run: gcc --version && cmake --version
- name: Checkout repository
uses: actions/checkout@v1
- name: Get submodules
run: git submodule init
&& git submodule update
- name: Configure Serial build
run: cmake -S . -B build
- name: Build
run: cmake --build build
build-openmp:
runs-on: ubuntu-latest
steps:
- name: Check GNU and Cmake versions
run: gcc --version && cmake --version
- name: Checkout repository
uses: actions/checkout@v1
- name: Get submodules
run: git submodule init
&& git submodule update
- name: Configure OpenMP build
run: cmake -S . -B build -DKokkos_ENABLE_OPENMP=ON
- name: Build
run: cmake --build build
build-ampere80:
runs-on: ubuntu-latest
steps:
- name: Check GNU and Cmake versions
run: gcc --version && cmake --version
- name: Install Cuda Toolkit
uses: Jimver/[email protected]
id: cuda-toolkit
with:
cuda: '11.7.0'
- name: Checkout repository
uses: actions/checkout@v1
- name: Get submodules
run: git submodule init
&& git submodule update
- name: Configure OPENMP & CUDA build
run: cmake -S . -B build -DKokkos_ENABLE_OPENMP=ON -DKokkos_ENABLE_CUDA=ON -DKokkos_ARCH_AMPERE80=ON -DKokkos_ENABLE_CUDA_LAMBDA=ON -DKokkos_ENABLE_CUDA_RELOCATABLE_DEVICE_CODE=ON
- name: Build
run: cmake --build build
25 changes: 0 additions & 25 deletions .github/workflows/cpp-linter-checks.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Docs
on:
#push:
# branches-ignore:
# - '**'
# - '**'
push:
branches: [ main ]

Expand Down Expand Up @@ -31,4 +31,4 @@ jobs:
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: docs/_build/html # The folder the action should deploy.
FOLDER: docs/_build/html # The folder the action should deploy.
22 changes: 22 additions & 0 deletions .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Unittests

on: [push, pull_request]

jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Check GNU and Cmake versions
run: gcc --version && cmake --version
- name: Checkout repository
uses: actions/checkout@v1
- name: Get submodules
run: git submodule init
&& git submodule update
- name: Configure
run: cmake -S . -B build
- name: Build
run: cmake --build build
- name: Run all tests
run: cd build/tests/unittests
&& ctest
8 changes: 6 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
.DS_Store
build/
_build/
_static/
_templates/
public/
firebase*.yml
firebase*.yml
*.out
debug.sh
output.log
run.sh
results/
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "boost-cmake"]
path = boost-cmake
url = https://github.com/Orphis/boost-cmake.git
17 changes: 17 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v4.3.0"
hooks:
- id: check-case-conflict
- id: check-merge-conflict
- id: check-symlinks
- id: check-yaml
- id: end-of-file-fixer
- id: mixed-line-ending
- id: requirements-txt-fixer
- id: trailing-whitespace
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: "v14.0.5"
hooks:
- id: clang-format
types_or: [c++]
29 changes: 29 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# .readthedocs.yaml
# 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"
# You can also specify other tool versions:
# nodejs: "19"
# rust: "1.64"
# golang: "1.19"

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

# If using Sphinx, optionally build your docs in additional formats such as PDF
# formats:
# - pdf

# Optionally declare the Python requirements required to build your docs
python:
install:
- requirements: docs/requirements.txt
Loading

0 comments on commit 06b2b42

Please sign in to comment.