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

Fix cmake dependence error in pten allocator #37304

Merged
merged 1 commit into from
Nov 19, 2021

Conversation

LiYuRio
Copy link
Contributor

@LiYuRio LiYuRio commented Nov 17, 2021

PR types

Bug fixes

PR changes

Others

Describe

修复pten的allocator,cmake依赖没有设置导致debug编译报错的问题。

../../pten/kernels/cuda/libmath_cuda.a(math.cu.o): In function `paddle::experimental::DefaultAllocator::Delete(void*)':
/home/liyurui/work/develop/Paddle/paddle/pten/api/lib/utils/allocator.h:32: undefined reference to `paddle::experimental::DefaultAllocator::deleter_'
collect2: error: ld returned 1 exit status
paddle/fluid/operators/CMakeFiles/feed_forward_test.dir/build.make:292: recipe for target 'paddle/fluid/operators/feed_forward_test' failed
make[2]: *** [paddle/fluid/operators/feed_forward_test] Error 1
CMakeFiles/Makefile2:103648: recipe for target 'paddle/fluid/operators/CMakeFiles/feed_forward_test.dir/all' failed
make[1]: *** [paddle/fluid/operators/CMakeFiles/feed_forward_test.dir/all] Error 2

@paddle-bot-old
Copy link

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@chenwhql chenwhql merged commit 6653ac5 into PaddlePaddle:develop Nov 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants