-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix 'BlasAXPBY unimplemented' error with custom device (#48762)
* fix 'BlasAXPBY unimplemented' error with custom device * fix utils CmakeLists bug
- Loading branch information
Showing
7 changed files
with
117 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 6 additions & 4 deletions
10
paddle/fluid/eager/accumulation/CMakeLists.txt
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
cc_library( | ||
accumulation_node | ||
SRCS accumulation_node.cc | ||
DEPS gradient_accumulator phi_api grad_node_info) | ||
if(NOT (NOT WITH_PYTHON AND ON_INFER)) | ||
cc_library( | ||
accumulation_node | ||
SRCS accumulation_node.cc | ||
DEPS gradient_accumulator phi_api grad_node_info) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 20 additions & 8 deletions
28
paddle/fluid/eager/api/utils/CMakeLists.txt
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,24 @@ | ||
cc_library( | ||
tensor_utils | ||
SRCS tensor_utils.cc | ||
DEPS phi_api autograd_meta grad_node_info accumulation_node) | ||
cc_library( | ||
hook_utils | ||
SRCS hook_utils.cc | ||
DEPS phi tensor_utils autograd_meta grad_node_info utils accumulation_node) | ||
cc_library( | ||
global_utils | ||
SRCS global_utils.cc | ||
DEPS place tracer) | ||
|
||
if(NOT (NOT WITH_PYTHON AND ON_INFER)) | ||
cc_library( | ||
tensor_utils | ||
SRCS tensor_utils.cc | ||
DEPS phi_api autograd_meta grad_node_info accumulation_node) | ||
cc_library( | ||
hook_utils | ||
SRCS hook_utils.cc | ||
DEPS phi tensor_utils autograd_meta grad_node_info utils accumulation_node) | ||
else() | ||
cc_library( | ||
tensor_utils | ||
SRCS tensor_utils.cc | ||
DEPS phi_api autograd_meta grad_node_info) | ||
cc_library( | ||
hook_utils | ||
SRCS hook_utils.cc | ||
DEPS phi tensor_utils autograd_meta grad_node_info utils) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters