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

Compilation error: math_function_generated_im2col.cu.o #8715

Closed
luotao1 opened this issue Mar 2, 2018 · 0 comments · Fixed by #8716
Closed

Compilation error: math_function_generated_im2col.cu.o #8715

luotao1 opened this issue Mar 2, 2018 · 0 comments · Fixed by #8716

Comments

@luotao1
Copy link
Contributor

luotao1 commented Mar 2, 2018

/home/luotao02/Paddle/paddle/fluid/framework/dim.h(161): error: Within a __device__/__global__ function, only __shared__ variables may be marked "static"

/home/luotao02/Paddle/paddle/fluid/framework/dim.h(187): error: Within a __device__/__global__ function, only __shared__ variables may be marked "static"

2 errors detected in the compilation of "/home/luotao02/.tmp/tmpxft_00003712_00000000-7_im2col.cpp1.ii".
CMake Error at math_function_generated_im2col.cu.o.cmake:260 (message):
  Error generating file
  /home/luotao02/Paddle/build/paddle/fluid/operators/math/CMakeFiles/math_function.dir//./math_function_generated_im2col.cu.o


make[2]: *** [paddle/fluid/operators/math/CMakeFiles/math_function.dir/math_function_generated_im2col.cu.o] Error 1
make[1]: *** [paddle/fluid/operators/math/CMakeFiles/math_function.dir/all] Error 2
make: *** [all] Error 2

This error is similar to tensorflow/tensorflow#10258.
The reason is that On CUDA versions previous to 8.0, only shared variables could be declared as static in the device code.

blacksheep-Aristotle pushed a commit to blacksheep-Aristotle/Paddle that referenced this issue Nov 22, 2024
* support optimizer state offload (PaddlePaddle#8715)

* support optimizer offload

* update doc

* [FleetY]offload optimizer state after load optmizer state (PaddlePaddle#9352)

* add offload optimizer

* fix memory

* [FleetY] Add reload/offload for optimizer (PaddlePaddle#9356)

* add reload/offload for optimizer

* fix bug

---------

Co-authored-by: Guoxia Wang <mingzilaochongtu@gmail.com>
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 a pull request may close this issue.

1 participant