-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Move source files into "src" * Update the build system * Fix the build script * Update .gitignore * Fix funcion name collision * Compile SchNet kernels * Build the test executables * Enable testing * Move the build documenation * Fix the molecule path * Update the documetation * Create __init__.py * Add an import test * Update a test tolerance * Use "static" to avoid fubction name collistions * Clean up the docs
- Loading branch information
Raimondas Galvelis
authored
Sep 23, 2021
1 parent
3d0bab6
commit d4190d8
Showing
38 changed files
with
102 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,3 @@ | ||
# Prerequisites | ||
*.d | ||
|
||
# Compiled Object files | ||
*.slo | ||
*.lo | ||
*.o | ||
*.obj | ||
|
||
# Precompiled Headers | ||
*.gch | ||
*.pch | ||
|
||
# Compiled Dynamic libraries | ||
*.so | ||
*.dylib | ||
*.dll | ||
|
||
# Fortran module files | ||
*.mod | ||
*.smod | ||
|
||
# Compiled Static libraries | ||
*.lai | ||
*.la | ||
*.a | ||
*.lib | ||
|
||
# Executables | ||
*.exe | ||
*.out | ||
*.app | ||
.vscode | ||
__pycache__ | ||
build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
cmake_minimum_required(VERSION 3.20 FATAL_ERROR) | ||
|
||
set(NAME NNPOps) | ||
set(LIBRARY ${NAME}PyTorch) | ||
project(${NAME} LANGUAGES CXX CUDA) | ||
|
||
find_package(Python REQUIRED) | ||
find_package(PythonLibs REQUIRED) | ||
find_package(Torch REQUIRED) | ||
enable_testing() | ||
|
||
add_library(${LIBRARY} SHARED src/ani/CpuANISymmetryFunctions.cpp | ||
src/ani/CudaANISymmetryFunctions.cu | ||
src/pytorch/SymmetryFunctions.cpp | ||
src/schnet/CpuCFConv.cpp | ||
src/schnet/CudaCFConv.cu) | ||
target_include_directories(${LIBRARY} PRIVATE src/ani src/schnet) | ||
target_link_libraries(${LIBRARY} ${TORCH_LIBRARIES} ${PYTHON_LIBRARIES}) | ||
|
||
set(TEST_PATHS src/ani/TestCpuANISymmetryFunctions.cpp | ||
src/ani/TestCudaANISymmetryFunctions.cpp | ||
src/schnet/TestCpuCFConv.cpp | ||
src/schnet/TestCudaCFConv.cu) | ||
foreach(TEST_PATH ${TEST_PATHS}) | ||
cmake_path(GET TEST_PATH STEM TEST_NAME) | ||
add_executable(${TEST_NAME} ${TEST_PATH}) | ||
target_link_libraries(${TEST_NAME} ${LIBRARY}) | ||
add_test(${TEST_NAME} ${TEST_NAME}) | ||
endforeach() | ||
|
||
add_test(TestSymmetryFunctions pytest ${CMAKE_SOURCE_DIR}/src/pytorch/TestSymmetryFunctions.py) | ||
|
||
install(TARGETS ${LIBRARY} DESTINATION ${Python_SITEARCH}/${NAME}) | ||
install(FILES src/pytorch/__init__.py | ||
src/pytorch/SymmetryFunctions.py | ||
DESTINATION ${Python_SITEARCH}/${NAME}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
name: nnpops | ||
channels: | ||
- conda-forge | ||
dependencies: | ||
- cmake | ||
- gxx_linux-64 | ||
- gxx_linux-64 <=10 | ||
- make | ||
- mdtraj | ||
- nvcc_linux-64 | ||
- torchani 2.2 | ||
- pytest | ||
- python 3.9 | ||
- pytorch 1.8.0 | ||
- pytorch-gpu 1.8.0 |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.