Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
9241349
Update README.md
paulzim46 Nov 1, 2024
797751b
Update README.md
paulzim46 Nov 1, 2024
5f4e0ab
update cusolver library links
paulzim46 Nov 1, 2024
f66d1e2
Update README.md
paulzim46 Nov 1, 2024
c09fab6
Updating everything
paulzim46 Nov 10, 2024
82349db
Updating everything
paulzim46 Nov 10, 2024
f5e447a
Updating everything
paulzim46 Nov 10, 2024
f70ee5f
Updating everything
paulzim46 Nov 10, 2024
97a8db9
Updating everything
paulzim46 Nov 10, 2024
9bb9875
Delete src/libio/write.h
paulzim46 Nov 10, 2024
aa3de46
Delete src/libio/read.h
paulzim46 Nov 10, 2024
a55dfa8
Delete src/libcintw/cint.h
paulzim46 Nov 10, 2024
1dc6f41
Delete src/libcintw/elements.h
paulzim46 Nov 10, 2024
5d89716
Delete src/libcintw/cintprep.h
paulzim46 Nov 10, 2024
150a701
Delete src/libcintw/cint_funcs.h
paulzim46 Nov 10, 2024
fc80e20
Delete src/libcintw/cintwrapper.h
paulzim46 Nov 10, 2024
11b5ccb
Delete src/libcintw/gto_grid.h
paulzim46 Nov 10, 2024
c0d25d5
Delete include/grid_util.h
paulzim46 Nov 12, 2024
d5b3391
Delete src/integrals/grid_util.cpp
paulzim46 Nov 12, 2024
e733a61
delete grid_util.cpp
paulzim46 Nov 12, 2024
6e86a13
Remove unnecessary USE_ACC directives
paulzim46 Nov 12, 2024
8a6bc41
delete USE_ACC
paulzim46 Nov 12, 2024
367979e
Various small mods
paulzim46 Dec 26, 2024
20dc94f
Update integrals to support async
paulzim46 Dec 26, 2024
58018b7
Updated v4 aux basis, also various print/read/write statements
paulzim46 Mar 21, 2025
edb4e0d
Latest versions of everything. Automatic nbatch
paulzim46 Mar 21, 2025
7b3f528
Updates to go with latest commit
paulzim46 Mar 21, 2025
8168f35
updating single-gpu version
paulzim46 May 9, 2025
0869fc6
various small updates, RIv5
paulzim46 May 9, 2025
7a912e8
single-gpu version
paulzim46 May 9, 2025
e0e78ad
Merge branch 'zsgpu' into zsgpu-main-merge
joshkamm May 13, 2025
e7607ad
Update arguments in compute_3c_ps function call
joshkamm May 13, 2025
66f5b3f
bug fix for cusp gpu eval
paulzim46 May 15, 2025
61301f1
removed nbatch readup from compute_3c_ps and compute_4c_ol_ps; now on…
Vaibhav-Chemistry May 15, 2025
20248d6
Fixed eval_p12 for pVp
Vaibhav-Chemistry May 16, 2025
51405c6
Added a warning for multi-GPU runs
Vaibhav-Chemistry May 19, 2025
2c609cc
Examples added
Vaibhav-Chemistry May 21, 2025
00083d2
switch base test example to lih_VK1
joshkamm May 21, 2025
915c7e0
Refactor create_basis_aux_v4 to accept Blimit as a parameter and upda…
joshkamm May 21, 2025
d50fcff
fix for nbatch
paulzim46 May 22, 2025
8f5641e
Merge branch 'main' into zsgpu
joshkamm May 23, 2025
8861579
nbatch fix (part 2)
paulzim46 May 23, 2025
17183ab
nbatch fix (part 2)
paulzim46 May 23, 2025
132606f
Updated test examples with RI 5 and BLIMIT
Vaibhav-Chemistry May 31, 2025
d6dfc97
Fixed CMakeLists
Vaibhav-Chemistry May 31, 2025
5c4c658
Brought back old lih_VK1 test and added my go_2RDM env file, also cha…
Vaibhav-Chemistry May 31, 2025
5f624d5
Added a new env file
Vaibhav-Chemistry May 31, 2025
1ccaccd
Cleaning up
Vaibhav-Chemistry Jun 1, 2025
1ca7e96
comment out all occurrences of async
joshkamm Jun 10, 2025
81f1d55
Update .gitignore for example folders
joshkamm Jun 10, 2025
12d517d
Enhance CMake configuration for installation and include directories
joshkamm Jun 12, 2025
0f63e75
Merge pull request #31 from ZimmermanGroup/configure-installation-in-…
joshkamm Jun 14, 2025
69f11ca
Explicitly specify nvhpc compilers in CMakeLists.txt
joshkamm Jun 19, 2025
9ba43f5
Set CMAKE_INSTALL_LIBDIR to 'lib' to align with conda expectations
joshkamm Jun 19, 2025
23e7c6a
Update CMakeLists.txt to clarify compiler settings and bump pixi-buil…
joshkamm Jun 24, 2025
6fc01c4
Update pixi clean task directory to examples/lih_VK1
joshkamm Jun 25, 2025
308a63e
Merge branch 'zsgpu' of https://github.com/ZimmermanGroup/SlaterGPU i…
joshkamm Jun 25, 2025
102a298
Update hash value in pixi.lock for SlaterGPU -> first conda upload to…
joshkamm Jun 25, 2025
a62dbca
Update becke.cpp
paulzim46 Jun 25, 2025
1b02e98
Normalize package name to lowercase and update version to 0.1.1 in re…
joshkamm Jun 27, 2025
8a20213
Add CMake package configuration and version files
joshkamm Jul 1, 2025
3298e25
Updating to latest version
paulzim46 Jul 7, 2025
82b4f2d
Updating to latest version
paulzim46 Jul 7, 2025
9f7498b
Updating to latest version
paulzim46 Jul 7, 2025
cda3b38
Update README.md
joshkamm Jul 10, 2025
81151bb
Update pixi.toml with Perlmutter test task
joshkamm Jul 15, 2025
9c9adaa
Merge branch 'zsgpu' of https://github.com/ZimmermanGroup/SlaterGPU i…
joshkamm Jul 15, 2025
a1bf689
Reapply edit to SSTRF functions and update version to 0.1.4
joshkamm Jul 16, 2025
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
10 changes: 5 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ CTestTestfile.cmake
_deps
build*
!build.sh
examples/geom_*/A
examples/geom_*/Ciap
examples/geom_*/g
examples/geom_*/pVp
examples/geom_*/SENT
examples/*/A
examples/*/Ciap
examples/*/g
examples/*/pVp
examples/*/SENT
/examples/__pycache__
# pixi environments
.pixi
Expand Down
41 changes: 41 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
cmake_minimum_required(VERSION 3.15)

# Set the C and C++ compilers to NVIDIA HPC SDK compilers
# Ensure that the nvc and nvc++ compilers are available in the PATH
set(CMAKE_C_COMPILER nvc)
set(CMAKE_CXX_COMPILER nvc++)

project(SlaterGPU VERSION 0.1
DESCRIPTION "Integrals over Slater type orbitals with GPU Acceleration"
LANGUAGES C CXX)
Expand Down Expand Up @@ -40,9 +46,44 @@ set(CMAKE_CXX_STANDARD_REQUIRED True)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)

# Install directories
include(GNUInstallDirs)
# Force lib directory instead of lib64 to match conda expectations
set(CMAKE_INSTALL_LIBDIR lib)

add_subdirectory(src)
add_subdirectory(examples)

# Install header files
install(DIRECTORY include/
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
FILES_MATCHING PATTERN "*.h")

add_definitions("-w")
message(STATUS "${CMAKE_CXX_FLAGS}")
message(STATUS "DO_GTO: ${DO_GTO}")

# Generate package configuration files
include(CMakePackageConfigHelpers)

# Configure the config file
configure_package_config_file(
"${CMAKE_CURRENT_SOURCE_DIR}/SlaterGPUConfig.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/SlaterGPUConfig.cmake"
INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/SlaterGPU
PATH_VARS CMAKE_INSTALL_INCLUDEDIR
)

# Configure the version file
write_basic_package_version_file(
"${CMAKE_CURRENT_BINARY_DIR}/SlaterGPUConfigVersion.cmake"
VERSION ${PROJECT_VERSION}
COMPATIBILITY SameMajorVersion
)

# Install the config files
install(FILES
"${CMAKE_CURRENT_BINARY_DIR}/SlaterGPUConfig.cmake"
"${CMAKE_CURRENT_BINARY_DIR}/SlaterGPUConfigVersion.cmake"
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/SlaterGPU
)
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ The executable will be generated at `build/examples/sgpu.exe`
### Testing:
Go into one of the example directories inside the build directory.
```
cd build/examples/geom_1
cd build/examples/lih_VK1
```

Then execute SlaterGPU within this directory to run the test.
Expand Down
31 changes: 31 additions & 0 deletions SlaterGPUConfig.cmake.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
@PACKAGE_INIT@

include(CMakeFindDependencyMacro)

# Find required dependencies
find_dependency(OpenMP REQUIRED)
find_dependency(MPI REQUIRED)
find_dependency(BLAS REQUIRED)
find_dependency(LAPACK REQUIRED)

# Find CUDA if available
find_package(CUDA QUIET)
if(CUDA_FOUND)
enable_language(CUDA)
endif()

# Include the targets file
include("${CMAKE_CURRENT_LIST_DIR}/SlaterGPUTargets.cmake")

# Set variables for backwards compatibility
set(SlaterGPU_LIBRARIES SlaterGPU::SlaterGPU SlaterGPU::io)
if(@DO_GTO@)
list(APPEND SlaterGPU_LIBRARIES SlaterGPU::cintw)
find_dependency(PkgConfig REQUIRED)
pkg_check_modules(LIBCINT REQUIRED libcint>=5.3.0)
endif()

set(SlaterGPU_INCLUDE_DIRS "${PACKAGE_PREFIX_DIR}/@CMAKE_INSTALL_INCLUDEDIR@")
set(SlaterGPU_FOUND TRUE)

check_required_components(SlaterGPU)
11 changes: 11 additions & 0 deletions SlaterGPUConfigVersion.cmake.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
set(PACKAGE_VERSION "@PROJECT_VERSION@")

# Check whether the requested PACKAGE_FIND_VERSION is compatible
if("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}")
set(PACKAGE_VERSION_COMPATIBLE FALSE)
else()
set(PACKAGE_VERSION_COMPATIBLE TRUE)
if("${PACKAGE_VERSION}" VERSION_EQUAL "${PACKAGE_FIND_VERSION}")
set(PACKAGE_VERSION_EXACT TRUE)
endif()
endif()
5 changes: 1 addition & 4 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ cmake --version

cmake -DCMAKE_INSTALL_PREFIX=$PREFIX -B $SRC_DIR/../build -S $RECIPE_DIR
cmake --build $SRC_DIR/../build -j 16

cp -r ../build/lib/* $PREFIX/lib
mkdir -p $PREFIX/bin
cp ../build/examples/sgpu.exe $PREFIX/bin
cmake --install $SRC_DIR/../build

# touch WORKING
# while [ -f "WORKING" ]; do
Expand Down
Empty file modified env.set.local0
100755 → 100644
Empty file.
32 changes: 25 additions & 7 deletions examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,31 @@ if(USE_ACC)
)
endif()

#LAPACK cmake not right.
#need to use this as a variable below
find_package(LAPACK)

find_package(BLAS)
enable_language(CUDA)
find_package(CUDA REQUIRED)
find_library(CUDART_LIBRARY cudart ${CMAKE_CUDA_IMPLICIT_LINK_DIRECTORIES})

#enable_language(FORTRAN)
#find_library(FORTRANLIBS fortranlibs ${CMAKE_CUDA_IMPLICIT_LINK_DIRECTORIES})

set_property(TARGET sgpu.exe PROPERTY CXX_STANDARD 14)
target_compile_options(sgpu.exe PRIVATE ${TEST_COMP_FLAGS} -O2)
target_link_libraries(sgpu.exe PRIVATE SlaterGPU io)
file(COPY geom_1 DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
file(COPY geom_2 DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
file(COPY geom_3 DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
file(COPY geom_4 DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
file(COPY geom_5 DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
file(COPY geom_ps DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
#target_link_libraries(sgpu.exe PRIVATE SlaterGPU io "${CUDART_LIBRARY}" "${CUDA_LIBRARIES}" )
target_link_libraries(sgpu.exe PRIVATE SlaterGPU io "${FORTRANLIBS}" "${CUDART_LIBRARY}" "${CUDA_LIBRARIES}" "${CUDA_TOOLKIT_ROOT_DIR}/../../math_libs/lib64/libcublas.so" "${CUDA_TOOLKIT_ROOT_DIR}/../../math_libs/lib64/libcusolver.so" "-L/home/paulzim/integrate/gpu/lib/lapack-3.9.0/lib/ -llapack -lblas" "-L/export/apps/RockyOS8/nvidia_hpc/2024_249/Linux_x86_64/24.9/ -fortranlibs" )
file(COPY lih_VK1 DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
file(COPY lih_ri5 DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
file(COPY h2_ri5 DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
file(COPY ch2_ri5 DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
file(COPY beh2_ri5 DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
file(COPY noplus_ri5 DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
file(COPY ch4_ri5 DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
file(COPY run.sh DESTINATION ${CMAKE_CURRENT_BINARY_DIR})

# Add installation for the executable
install(TARGETS sgpu.exe
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
111 changes: 111 additions & 0 deletions examples/beh2_ri5/A_ref

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions examples/beh2_ri5/BLIMIT
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.3
14 changes: 14 additions & 0 deletions examples/beh2_ri5/Be.basis
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
BASIS
1S 5.46
1S 3.18
2S 2.22
2S 1.22
2S 0.78
2P 0.80
2P 1.50
3D 1.90
END

FIT
1S 8.0
END
785 changes: 785 additions & 0 deletions examples/beh2_ri5/Ciap_ref

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions examples/beh2_ri5/GEOM
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
H 0. 0. -2.3
Be 0. 0. 0.
H 0. 0. 2.3
2 changes: 2 additions & 0 deletions examples/beh2_ri5/GRID
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
100
23
3 changes: 3 additions & 0 deletions examples/beh2_ri5/GRIDPS
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
80
60
20
10 changes: 10 additions & 0 deletions examples/beh2_ri5/H.basis
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
BASIS
1S 0.69
1S 0.92
1S 1.58
2P 1.25
END

FIT
1S 2.0
END
1 change: 1 addition & 0 deletions examples/beh2_ri5/NSPLIT
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3
1 change: 1 addition & 0 deletions examples/beh2_ri5/QUAD
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
4
1 change: 1 addition & 0 deletions examples/beh2_ri5/RI
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
5
Loading
Loading