Skip to content

pt: Fix compilation with libtorch#3405

Merged
wanghan-iapcm merged 2 commits intodeepmodeling:develfrom
njzjz:fix-libtorch
Mar 4, 2024
Merged

pt: Fix compilation with libtorch#3405
wanghan-iapcm merged 2 commits intodeepmodeling:develfrom
njzjz:fix-libtorch

Conversation

@njzjz
Copy link
Copy Markdown
Member

@njzjz njzjz commented Mar 3, 2024

Backported from conda-forge/deepmd-kit-feedstock#71.

  1. The rpath of libdeepmd_cc should contain the libtorch directory if it differs from the path of libdeepmd_cc. Setting INSTALL_RPATH_USE_LINK_PATH to true resolves the problem.
  2. ${TORCH_CXX_FLAGS} is empty in macOS, so the variable with quotes, i.e. "${TORCH_CXX_FLAGS}", should be used.

njzjz added 2 commits March 3, 2024 06:30
Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
@github-actions github-actions Bot added the C++ label Mar 3, 2024
@njzjz njzjz marked this pull request as ready for review March 3, 2024 22:03
@njzjz njzjz changed the title Fix compilation with libtorch pt: Fix compilation with libtorch Mar 3, 2024
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.93%. Comparing base (ec32340) to head (5c8e850).
Report is 1 commits behind head on devel.

Additional details and impacted files
@@            Coverage Diff             @@
##            devel    #3405      +/-   ##
==========================================
- Coverage   76.98%   76.93%   -0.06%     
==========================================
  Files         390      423      +33     
  Lines       31048    35847    +4799     
  Branches      909     1620     +711     
==========================================
+ Hits        23903    27579    +3676     
- Misses       6617     7400     +783     
- Partials      528      868     +340     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@njzjz njzjz requested a review from wanghan-iapcm March 3, 2024 22:25
@wanghan-iapcm wanghan-iapcm added this pull request to the merge queue Mar 4, 2024
Merged via the queue into deepmodeling:devel with commit 32a86ac Mar 4, 2024
njzjz added a commit to njzjz/deepmd-kit that referenced this pull request Mar 6, 2024
Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>

deepmodeling#3405 changed results from `None` to `{}` but `print_on_training` wasn't revised.
github-merge-queue Bot pushed a commit that referenced this pull request Mar 8, 2024
#3405 changed results from `None` to `{}` but `print_on_training` wasn't
revised.
@njzjz njzjz mentioned this pull request Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants