From 2b9825cefe7d810d3b816550faad457ef4c23c77 Mon Sep 17 00:00:00 2001 From: caic99 Date: Wed, 6 Mar 2024 19:13:56 +0800 Subject: [PATCH 1/2] Build: update conda build script for CUDA 12 and uni-dock subfolder --- unidock/conda/conda_build_config.yaml | 9 ++++-- unidock/conda/meta.yaml | 44 ++++++++++++++++++--------- 2 files changed, 36 insertions(+), 17 deletions(-) diff --git a/unidock/conda/conda_build_config.yaml b/unidock/conda/conda_build_config.yaml index 9c7d3e93..99ac936d 100644 --- a/unidock/conda/conda_build_config.yaml +++ b/unidock/conda/conda_build_config.yaml @@ -1,3 +1,8 @@ -cuda_compiler: nvcc # Required for compiler('cuda') +cuda_compiler: cuda-nvcc # Required for compiler('cuda') channel_sources: conda-forge # Required for compiler('cxx') -cxx_compiler_version: 10 # nvcc requires a compatible gcc version. see https://gist.github.com/ax3l/9489132 + +# nvcc requires a compatible gcc version. See https://gist.github.com/ax3l/9489132#nvcc +# If you are using CUDA 11, the following settings are recommended: +# cuda_compiler: nvcc +# cxx_compiler_version: 10 +# cuda_compiler_version: 11 diff --git a/unidock/conda/meta.yaml b/unidock/conda/meta.yaml index 11b68570..cc074f33 100644 --- a/unidock/conda/meta.yaml +++ b/unidock/conda/meta.yaml @@ -1,22 +1,36 @@ {% set version = os.popen('git describe --tags --abbrev=0').read().strip('\n').lstrip('v').replace('-', '_') %} +# This script is used for building a conda package for Uni-Dock. +# CUDA Toolkit is required. +# If you are using CUDA Toolkit 11.x, check conda_build_config.yaml for instructions. + +# conda build . -c conda-forge + package: name: unidock version: {{ version }} +# By default it builds the source codes from the local directory. +# To build the release version from GitHub, +# comment out the 'path' line and uncomment the 'git_url' and 'git_rev' line, +# and replace {{ version }} with the release version number. + source: - path: .. + path: ../.. # Root dir of Uni-Dock + # git_url: https://github.com/dptech-corp/Uni-Dock.git + # git_rev: {{ version }} -# To build a conda package locally: `conda build . -c conda-forge` build: skip: true # [not linux] # ${CMAKE_ARGS} applys restrictions for CMake to search libs under conda building env. # See https://conda-forge.org/docs/maintainer/knowledge_base.html#using-cmake . + # https://docs.conda.io/projects/conda-build/en/stable/user-guide/environment-variables.html#environment-variables-set-during-the-build-process script: | - mkdir build && cd build - cmake ${CMAKE_ARGS} ${SRC_DIR} - make unidock -j`nproc` + cd unidock + mkdir conda_build && cd conda_build + cmake ${CMAKE_ARGS} ${SRC_DIR}/unidock + make unidock -j$CPU_COUNT make install string: {{ GIT_BUILD_STR }} @@ -29,10 +43,10 @@ requirements: - cmake host: - - boost-cpp + - libboost-devel + - libcurand-dev - run: - - boost + # run: test: @@ -42,17 +56,17 @@ test: about: home: https://github.com/dptech-corp/Uni-Dock - # doc_url: https://github.com/dptech-corp/Uni-Dock - # dev_url: https://github.com/dptech-corp/Uni-Dock + doc_url: https://github.com/dptech-corp/Uni-Dock + dev_url: https://github.com/dptech-corp/Uni-Dock license: LGPL-3.0 license_family: LGPL - license_file: LICENSE + license_file: unidock/LICENSE summary: A GPU-accelerated molecular docking program description: > - Uni-Dock is a GPU-accelerated molecular docking program developed by DP Technology. - It supports various scoring functions including vina, vinardo, and ad4. - Uni-Dock achieves more than 1000-fold speed-up on V100 GPU with high-accuracy, - compared with the AutoDock Vina running in single CPU core. + Uni-Dock is a GPU-accelerated molecular docking program developed by DP Technology. + It supports various scoring functions including vina, vinardo, and ad4. + Uni-Dock achieves more than 1000-fold speed-up on V100 GPU with high-accuracy, + compared with the AutoDock Vina running in single CPU core. The paper has been accepted by JCTC (doi: 10.1021/acs.jctc.2c01145). extra: From 7905ae3633ff5e28a90ae0e04055d9950594065d Mon Sep 17 00:00:00 2001 From: Chun Cai Date: Wed, 6 Mar 2024 19:48:15 +0800 Subject: [PATCH 2/2] Update unidock/conda/meta.yaml --- unidock/conda/meta.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/unidock/conda/meta.yaml b/unidock/conda/meta.yaml index cc074f33..000e6e01 100644 --- a/unidock/conda/meta.yaml +++ b/unidock/conda/meta.yaml @@ -46,7 +46,8 @@ requirements: - libboost-devel - libcurand-dev - # run: + run: + - libboost test: