提交 55f1e541 编写于 作者: L Liangliang He

Merge branch 'generate-opencl-kernel' into 'master'

Fix bug of generating OpenCL kernel source file.

See merge request !1143
...@@ -21,10 +21,9 @@ def _opencl_encrypt_kernel_impl(repository_ctx): ...@@ -21,10 +21,9 @@ def _opencl_encrypt_kernel_impl(repository_ctx):
if ret.return_code == 0: if ret.return_code == 0:
unused_var = repository_ctx.path(Label("//:.git/refs/heads/master")) unused_var = repository_ctx.path(Label("//:.git/refs/heads/master"))
ret = repository_ctx.execute( repository_ctx.execute(
["test", "-f", "%s/mace/ops/opencl/cl/common.cl" % mace_root_path], ["test", "-f", "%s/mace/ops/opencl/cl/common.h" % mace_root_path],
) )
if ret.return_code == 0:
unused_var = repository_ctx.path(Label("//:mace/ops/opencl/cl/activation.cl")) unused_var = repository_ctx.path(Label("//:mace/ops/opencl/cl/activation.cl"))
unused_var = repository_ctx.path(Label("//:mace/ops/opencl/cl/addn.cl")) unused_var = repository_ctx.path(Label("//:mace/ops/opencl/cl/addn.cl"))
unused_var = repository_ctx.path(Label("//:mace/ops/opencl/cl/batch_norm.cl")) unused_var = repository_ctx.path(Label("//:mace/ops/opencl/cl/batch_norm.cl"))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册