Skip to content

Commit

Permalink
Add copyright notice to every C++ source
Browse files Browse the repository at this point in the history
  • Loading branch information
RaulPPelaez committed Dec 14, 2023
1 parent f22bcb8 commit af51a5d
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 17 deletions.
6 changes: 5 additions & 1 deletion torchmdnet/extensions/extensions.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
/* Raul P. Pelaez 2023. Torch extensions to the torchmdnet library.
/*
* Copyright Universitat Pompeu Fabra 2020-2023 https://www.compscience.org
* Distributed under the MIT License.
*(See accompanying file README.md file or copy at http://opensource.org/licenses/MIT)
* Raul P. Pelaez 2023. Torch extensions to the torchmdnet library.
* You can expose functions to python here which will be compatible with TorchScript.
* Add your exports to the TORCH_LIBRARY macro below, see __init__.py to see how to access them from python.
* The WITH_CUDA macro will be defined when compiling with CUDA support.
Expand Down
5 changes: 4 additions & 1 deletion torchmdnet/extensions/neighbors/common.cuh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
/* Raul P. Pelaez 2023. Common utilities for the CUDA neighbor operation.
/* Copyright Universitat Pompeu Fabra 2020-2023 https://www.compscience.org
* Distributed under the MIT License.
*(See accompanying file README.md file or copy at http://opensource.org/licenses/MIT)
* Raul P. Pelaez 2023. Common utilities for the CUDA neighbor operation.
*/
#ifndef NEIGHBORS_COMMON_CUH
#define NEIGHBORS_COMMON_CUH
Expand Down
4 changes: 4 additions & 0 deletions torchmdnet/extensions/neighbors/neighbors_cpu.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* Copyright Universitat Pompeu Fabra 2020-2023 https://www.compscience.org
* Distributed under the MIT License.
*(See accompanying file README.md file or copy at http://opensource.org/licenses/MIT)
*/
#include <torch/extension.h>
#include <tuple>

Expand Down
7 changes: 5 additions & 2 deletions torchmdnet/extensions/neighbors/neighbors_cuda.cu
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/* Raul P. Pelaez 2023
Connection between the neighbor CUDA implementations and the torch extension.
/*
* Copyright Universitat Pompeu Fabra 2020-2023 https://www.compscience.org
* Distributed under the MIT License.
* (See accompanying file README.md file or copy at http://opensource.org/licenses/MIT)
* Raul P. Pelaez 2023
*/
#include "neighbors_cuda_brute.cuh"
#include "neighbors_cuda_cell.cuh"
Expand Down
16 changes: 10 additions & 6 deletions torchmdnet/extensions/neighbors/neighbors_cuda_brute.cuh
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
/* Raul P. Pelaez 2023. Brute force neighbor list construction in CUDA.
A brute force approach that assigns a thread per each possible pair of particles in the system.
Based on an implementation by Raimondas Galvelis.
Works fantastically for small (less than 10K atoms) systems, but cannot handle more than 32K
atoms.
/* Copyright Universitat Pompeu Fabra 2020-2023 https://www.compscience.org
* Distributed under the MIT License.
*(See accompanying file README.md file or copy at http://opensource.org/licenses/MIT)
*
* Raul P. Pelaez 2023. Brute force neighbor list construction in CUDA.
*
* A brute force approach that assigns a thread per each possible pair of particles in the system.
* Based on an implementation by Raimondas Galvelis.
* Works fantastically for small (less than 10K atoms) systems, but cannot handle more than 32K
* atoms.
*/
#ifndef NEIGHBORS_BRUTE_CUH
#define NEIGHBORS_BRUTE_CUH
Expand Down
6 changes: 4 additions & 2 deletions torchmdnet/extensions/neighbors/neighbors_cuda_cell.cuh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/* Raul P. Pelaez 2023. Batched cell list neighbor list implementation for CUDA.
/* Copyright Universitat Pompeu Fabra 2020-2023 https://www.compscience.org
* Distributed under the MIT License.
*(See accompanying file README.md file or copy at http://opensource.org/licenses/MIT)
* Raul P. Pelaez 2023. Batched cell list neighbor list implementation for CUDA.
*/
#ifndef NEIGHBOR_CUDA_CELL_H
#define NEIGHBOR_CUDA_CELL_H
Expand Down
13 changes: 8 additions & 5 deletions torchmdnet/extensions/neighbors/neighbors_cuda_shared.cuh
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
/* Raul P. Pelaez 2023. Shared memory neighbor list construction for CUDA.
This brute force approach checks all pairs of atoms by collaborativelly loading and processing
tiles of atoms into shared memory.
This approach is tipically slower than the brute force approach, but can handle an arbitrarily
large number of atoms.
/* Copyright Universitat Pompeu Fabra 2020-2023 https://www.compscience.org
* Distributed under the MIT License.
*(See accompanying file README.md file or copy at http://opensource.org/licenses/MIT)
* Raul P. Pelaez 2023. Shared memory neighbor list construction for CUDA.
* This brute force approach checks all pairs of atoms by collaborativelly loading and processing
* tiles of atoms into shared memory.
* This approach is tipically slower than the brute force approach, but can handle an arbitrarily
* large number of atoms.
*/
#ifndef NEIGHBORS_SHARED_CUH
#define NEIGHBORS_SHARED_CUH
Expand Down

0 comments on commit af51a5d

Please sign in to comment.