Skip to content

cmake: set TensorFlow as import libraries#2056

Merged
wanghan-iapcm merged 6 commits intodeepmodeling:develfrom
njzjz:cmake-tf
Nov 4, 2022
Merged

cmake: set TensorFlow as import libraries#2056
wanghan-iapcm merged 6 commits intodeepmodeling:develfrom
njzjz:cmake-tf

Conversation

@njzjz
Copy link
Member

@njzjz njzjz commented Nov 4, 2022

Sets TensorFlow as import libraries (TensorFlow::tensorflow_framework, TensorFlow::tensorflow_cc), so we can just use target_link_libraries without target_include_directories.

Also changes the TF scope in api_cc from PUBLIC to PRIVATE, and removes TF requirements from lmp and gmx. It was required, but not required any more after #1789 merged.

njzjz added 2 commits November 3, 2022 23:24
Sets TensorFlow as import libraries (TensorFlow::tensorflow_framework, TensorFlow::tensorflow_cc), so we can just use target_link_libraries without target_include_directories.

Also changes the TF scope in api_cc from PUBLIC to PRIVATE, and removes TF requirements from lmp and gmx. It was required, but not required any more after deepmodeling#1789 merged.
@njzjz njzjz marked this pull request as draft November 4, 2022 03:30
@njzjz njzjz marked this pull request as ready for review November 4, 2022 03:57
@codecov-commenter
Copy link

codecov-commenter commented Nov 4, 2022

Codecov Report

Base: 73.79% // Head: 73.79% // No change to project coverage 👍

Coverage data is based on head (c38710a) compared to base (a1331cc).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##            devel    #2056   +/-   ##
=======================================
  Coverage   73.79%   73.79%           
=======================================
  Files         199      199           
  Lines       19957    19957           
  Branches      864      864           
=======================================
  Hits        14728    14728           
  Misses       4837     4837           
  Partials      392      392           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
@wanghan-iapcm wanghan-iapcm merged commit 77115fc into deepmodeling:devel Nov 4, 2022
mingzhong15 pushed a commit to mingzhong15/deepmd-kit that referenced this pull request Jan 15, 2023
Sets TensorFlow as import libraries (TensorFlow::tensorflow_framework,
TensorFlow::tensorflow_cc), so we can just use target_link_libraries
without target_include_directories.

Also changes the TF scope in api_cc from PUBLIC to PRIVATE, and removes
TF requirements from lmp and gmx. It was required, but not required any
more after deepmodeling#1789 merged.

Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants