Make paddle_util not to reference cuda
Created by: reyoung
During developing bazel build, we discover paddle_util package reference some CUDA headers(basically in Utils.h
).
To reproduce this issue, just check out branch feature/bazel_build
, then run bazel build paddle/utils:paddle_utils
in MacOS, (currently only MacOS is supported).
The screen record is here.
NOTE: We should fix this issue in develop
branch because it is not just a bazel building problem.