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

pt: Fix compilation with libtorch #3405

Merged
merged 2 commits into from
Mar 4, 2024

Conversation

njzjz
Copy link
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.

@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
Copy link

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
48 checks passed
njzjz added a commit to njzjz/deepmd-kit that referenced this pull request Mar 6, 2024
Signed-off-by: Jinzhe Zeng <[email protected]>

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