Skip to content

Commit 5960680

Browse files
authored
Release gpu4pyscf-libxc-v0.6 (pyscf#339)
* Enable building KXC * Bump version * disable unused build * add gint-rys back * build on self-host machine * make -j1
1 parent c9cf0f8 commit 5960680

File tree

3 files changed

+27
-11
lines changed

3 files changed

+27
-11
lines changed

builder/build_libxc.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ rm -rf /gpu4pyscf/put4pyscf/lib/*.so
2323

2424
setup_dir=$(dirname $0)
2525

26-
cmake -S /gpu4pyscf/gpu4pyscf/lib -B build/temp.gpu4pyscf-libxc -DBUILD_DFTD3=OFF -DBUILD_DFTD4=OFF -DBUILD_GINT=OFF -DBUILD_GVHF=OFF -DBUILD_GDFT=OFF -DBUILD_CUPY_HELPER=OFF -DBUILD_SOLVENT=OFF
27-
cmake --build build/temp.gpu4pyscf-libxc -j 4
26+
cmake -S /gpu4pyscf/gpu4pyscf/lib -B build/temp.gpu4pyscf-libxc -DBUILD_GINT=OFF -DBUILD_GVHF=OFF -DBUILD_GDFT=OFF -DBUILD_CUPY_HELPER=OFF -DBUILD_SOLVENT=OFF -DBUILD_GVHF_RYS=OFF -DBUILD_GVHF_MD=OFF -DBUILD_PBC=OFF -DCUDA_ARCHITECTURES="70-real"
27+
cmake --build build/temp.gpu4pyscf-libxc -j 1
2828

2929
mkdir -p build/lib.gpu4pyscf-libxc/gpu4pyscf/lib/deps/lib
3030
cp /gpu4pyscf/gpu4pyscf/lib/deps/lib/libxc.so build/lib.gpu4pyscf-libxc/gpu4pyscf/lib/deps/lib/

builder/setup_libxc.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@
2727
from distutils.util import get_platform
2828

2929
NAME = 'gpu4pyscf-libxc'
30-
AUTHOR = 'Qiming Sun'
31-
AUTHOR_EMAIL = '[email protected]'
32-
DESCRIPTION = 'GPU extensions for PySCF'
33-
LICENSE = 'GPLv3'
30+
AUTHOR = 'PySCF developers'
31+
AUTHOR_EMAIL = None
32+
DESCRIPTION = 'Customized LibXC for GPU4PySCF'
33+
LICENSE = 'Apache-2.0'
3434
URL = None
3535
DOWNLOAD_URL = None
3636
CLASSIFIERS = None
3737
PLATFORMS = None
38-
VERSION = '0.5'
38+
VERSION = '0.6'
3939

4040
def get_cuda_version():
4141
nvcc_out = subprocess.check_output(["nvcc", "--version"]).decode('utf-8')

gpu4pyscf/lib/CMakeLists.txt

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,26 @@ if(BUILD_SOLVENT)
144144
add_subdirectory(solvent)
145145
endif()
146146

147-
add_subdirectory(gint-rys)
148-
add_subdirectory(gvhf-rys)
149-
add_subdirectory(gvhf-md)
150-
add_subdirectory(pbc)
147+
option(BUILD_GINT_RYS "Using gint-rys" ON)
148+
if(BUILD_GINT_RYS)
149+
add_subdirectory(gint-rys)
150+
endif()
151+
152+
option(BUILD_GVHF_RYS "Using gvhf-rys" ON)
153+
if(BUILD_GVHF_RYS)
154+
add_subdirectory(gvhf-rys)
155+
endif()
156+
157+
option(BUILD_GVHF_MD "Using gvhf-md" ON)
158+
if(BUILD_GVHF_MD)
159+
add_subdirectory(gvhf-md)
160+
endif()
161+
162+
option(BUILD_PBC "Using pbc" ON)
163+
if(BUILD_PBC)
164+
add_subdirectory(pbc)
165+
endif()
166+
151167
add_subdirectory(multigrid)
152168

153169
option(BUILD_LIBXC "Using libxc for DFT" ON)

0 commit comments

Comments
 (0)