Skip to content
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
11 changes: 11 additions & 0 deletions .github/workflows/build_cc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
include:
- variant: cpu
- variant: cuda
- variant: clang
steps:
- name: work around permission issue
run: git config --global --add safe.directory /__w/deepmd-kit/deepmd-kit
Expand All @@ -22,10 +23,20 @@ jobs:
if: matrix.variant == 'cpu'
- run: apt-get update && apt-get install -y nvidia-cuda-toolkit
if: matrix.variant == 'cuda'
- run: apt-get update && apt-get install -y clang
if: matrix.variant == 'clang'
- run: source/install/build_cc.sh
env:
DP_VARIANT: ${{ matrix.variant }}
DOWNLOAD_TENSORFLOW: "FALSE"
if: matrix.variant != 'clang'
- run: source/install/build_cc.sh
env:
DP_VARIANT: cpu
DOWNLOAD_TENSORFLOW: "FALSE"
CC: clang
CXX: clang++
if: matrix.variant == 'clang'
# test lammps
- run: source/install/build_lammps.sh
if: matrix.variant == 'cpu'
Expand Down
4 changes: 2 additions & 2 deletions source/api_cc/src/AtomMap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,6 @@ backward (typename std::vector<VALUETYPE >::iterator out,
}
}

template class AtomMap<float>;
template class AtomMap<double>;
template class deepmd::AtomMap<float>;
template class deepmd::AtomMap<double>;