Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build: update conda build script for CUDA 12 and uni-dock subfolder #90

Merged
merged 2 commits into from
Mar 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
9 changes: 7 additions & 2 deletions unidock/conda/conda_build_config.yaml
Original file line number Diff line number Diff line change
@@ -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
43 changes: 29 additions & 14 deletions unidock/conda/meta.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
Expand All @@ -29,10 +43,11 @@ requirements:
- cmake

host:
- boost-cpp
- libboost-devel
- libcurand-dev

run:
- boost
- libboost


test:
Expand All @@ -42,17 +57,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:
Expand Down