How to add external header files during bazel/tensorflow build

后端 未结 3 610
醉话见心
醉话见心 2020-12-30 11:01

I am trying to add external header file (like OpenCL header file) for some experimentation for tensorflow. I tried to add this into BUILD file under tensorflow/core/BUILD fi

3条回答
  •  独厮守ぢ
    2020-12-30 11:55

    Bazel tries to be very strict about making sure its builds only include files that it knows about, to try to make sure that they are reproducible. Unfortunately that can make it tough to experiment with. The correct way to solve the problem is to create a BUILD file and rule for the headers you want to include. You may be able to hack something by messing around with the bazel-* generated folders too, but I don't recommend it.

提交回复
热议问题