Open zjcbatman opened 6 years ago
I have the same problem. Did you solve it? @zjcbatman
I solved it. There is a file called 'convert.sh' in darknet that needs to be run. Basically it convert all '.c' and '.cu' files to '.cu.cc', which will pass bazel's check.
when i run
i got some error
ERROR: /home/zjc/DeepLearning/tensorflow-noscope/tensorflow/noscope/darknet/BUILD:10:1: in srcs attribute of cc_library rule //tensorflow/noscope/darknet:yolo_gpu: file '//tensorflow/noscope/darknet:src/activation_kernels.cu' is misplaced here (expected .cc, .cpp, .cxx, .c++, .C, .c, .h, .hh, .hpp, .hxx, .inc, .S, .s, .asm, .a, .lib, .pic.a, .lo, .pic.lo, .so, .dylib, .dll, .o or .pic.o). Since this rule was created by the macro 'tf_kernel_library', the error might have been caused by the macro implementation in /home/zjc/DeepLearning/tensorflow-noscope/tensorflow/tensorflow.bzl:634:12. ERROR: /home/zjc/DeepLearning/tensorflow-noscope/tensorflow/noscope/darknet/BUILD:10:1: in srcs attribute of cc_library rule //tensorflow/noscope/darknet:yolo_gpu: '//tensorflow/noscope/darknet:src/activation_kernels.cu' does not produce any cc_library srcs files (expected .cc, .cpp, .cxx, .c++, .C, .c, .h, .hh, .hpp, .hxx, .inc, .S, .s, .asm, .a, .lib, .pic.a, .lo, .pic.lo, .so, .dylib, .dll, .o or .pic.o). Since this rule was created by the macro 'tf_kernel_library', the error might have been caused by the macro implementation in /home/zjc/DeepLearning/tensorflow-noscope/tensorflow/tensorflow.bzl:634:12. ERROR: /home/zjc/DeepLearning/tensorflow-noscope/tensorflow/noscope/darknet/BUILD:10:1: in srcs attribute of cc_library rule //tensorflow/noscope/darknet:yolo_gpu: file '//tensorflow/noscope/darknet:src/avgpool_layer_kernels.cu' is misplaced here (expected .cc, .cpp, .cxx, .c++, .C, .c, .h, .hh, .hpp, .hxx, .inc, .S, .s, .asm, .a, .lib, .pic.a, .lo, .pic.lo, .so, .dylib, .dll, .o or .pic.o). Since this rule was created by the macro 'tf_kernel_library', the error might have been caused by the macro implementation in /home/zjc/DeepLearning/tensorflow-noscope/tensorflow/tensorflow.bzl:634:12. ERROR: /home/zjc/DeepLearning/tensorflow-noscope/tensorflow/noscope/darknet/BUILD:10:1: in srcs attribute of cc_library rule //tensorflow/noscope/darknet:yolo_gpu: '//tensorflow/noscope/darknet:src/avgpool_layer_kernels.cu' does not produce any cc_library srcs files (expected .cc, .cpp, .cxx, .c++, .C, .c, .h, .hh, .hpp, .hxx, .inc, .S, .s, .asm, .a, .lib, .pic.a, .lo, .pic.lo, .so, .dylib, .dll, .o or .pic.o). Since this rule was created by the macro 'tf_kernel_library', the error might have been caused by the macro implementation in /home/zjc/DeepLearning/tensorflow-noscope/tensorflow/tensorflow.bzl:634:12. ERROR: /home/zjc/DeepLearning/tensorflow-noscope/tensorflow/noscope/darknet/BUILD:10:1: in srcs attribute of cc_library rule //tensorflow/noscope/darknet:yolo_gpu: file '//tensorflow/noscope/darknet:src/blas_kernels.cu' is misplaced here (expected .cc, .cpp, .cxx, .c++, .C, .c, .h, .hh, .hpp, .hxx, .inc, .S, .s, .asm, .a, .lib, .pic.a, .lo, .pic.lo, .so, .dylib, .dll, .o or .pic.o). Since this rule was created by the macro 'tf_kernel_library', the error might have been caused by the macro implementation in /home/zjc/DeepLearning/tensorflow-noscope/tensorflow/tensorflow.bzl:634:12. ERROR: /home/zjc/DeepLearning/tensorflow-noscope/tensorflow/noscope/darknet/BUILD:10:1: in srcs attribute of cc_library rule //tensorflow/noscope/darknet:yolo_gpu: '//tensorflow/noscope/darknet:src/blas_kernels.cu' does not produce any cc_library srcs files (expected .cc, .cpp, .cxx, .c++, .C, .c, .h, .hh, .hpp, .hxx, .inc, .S, .s, .asm, .a, .lib, .pic.a, .lo, .pic.lo, .so, .dylib, .dll, .o or .pic.o). Since this rule was created by the macro 'tf_kernel_library', the error might have been caused by the macro implementation in /home/zjc/DeepLearning/tensorflow-noscope/tensorflow/tensorflow.bzl:634:12. ERROR: /home/zjc/DeepLearning/tensorflow-noscope/tensorflow/noscope/darknet/BUILD:10:1: in srcs attribute of cc_library rule //tensorflow/noscope/darknet:yolo_gpu: file '//tensorflow/noscope/darknet:src/col2im_kernels.cu' is misplaced here (expected .cc, .cpp, .cxx, .c++, .C, .c, .h, .hh, .hpp, .hxx, .inc, .S, .s, .asm, .a, .lib, .pic.a, .lo, .pic.lo, .so, .dylib, .dll, .o or .pic.o). Since this rule was created by the macro 'tf_kernel_library', the error might have been caused by the macro implementation in /home/zjc/DeepLearning/tensorflow-noscope/tensorflow/tensorflow.bzl:634:12. ERROR: /home/zjc/DeepLearning/tensorflow-noscope/tensorflow/noscope/darknet/BUILD:10:1: in srcs attribute of cc_library rule //tensorflow/noscope/darknet:yolo_gpu: '//tensorflow/noscope/darknet:src/col2im_kernels.cu' does not produce any cc_library srcs files (expected .cc, .cpp, .cxx, .c++, .C, .c, .h, .hh, .hpp, .hxx, .inc, .S, .s, .asm, .a, .lib, .pic.a, .lo, .pic.lo, .so, .dylib, .dll, .o or .pic.o). Since this rule was created by the macro 'tf_kernel_library', the error might have been caused by the macro implementation in /home/zjc/DeepLearning/tensorflow-noscope/tensorflow/tensorflow.bzl:634:12. ERROR: /home/zjc/DeepLearning/tensorflow-noscope/tensorflow/noscope/darknet/BUILD:10:1: in srcs attribute of cc_library rule //tensorflow/noscope/darknet:yolo_gpu: file '//tensorflow/noscope/darknet:src/convolutional_kernels.cu' is misplaced here (expected .cc, .cpp, .cxx, .c++, .C, .c, .h, .hh, .hpp, .hxx, .inc, .S, .s, .asm, .a, .lib, .pic.a, .lo, .pic.lo, .so, .dylib, .dll, .o or .pic.o). Since this rule was created by the macro 'tf_kernel_library', the error might have been caused by the macro implementation in /home/zjc/DeepLearning/tensorflow-noscope/tensorflow/tensorflow.bzl:634:12. ERROR: /home/zjc/DeepLearning/tensorflow-noscope/tensorflow/noscope/darknet/BUILD:10:1: in srcs attribute of cc_library rule //tensorflow/noscope/darknet:yolo_gpu: '//tensorflow/noscope/darknet:src/convolutional_kernels.cu' does not produce any cc_library srcs files (expected .cc, .cpp, .cxx, .c++, .C, .c, .h, .hh, .hpp, .hxx, .inc, .S, .s, .asm, .a, .lib, .pic.a, .lo, .pic.lo, .so, .dylib, .dll, .o or .pic.o). Since this rule was created by the macro 'tf_kernel_library', the error might have been caused by the macro implementation in /home/zjc/DeepLearning/tensorflow-noscope/tensorflow/tensorflow.bzl:634:12. ERROR: /home/zjc/DeepLearning/tensorflow-noscope/tensorflow/noscope/darknet/BUILD:10:1: in srcs attribute of cc_library rule //tensorflow/noscope/darknet:yolo_gpu: file '//tensorflow/noscope/darknet:src/crop_layer_kernels.cu' is misplaced here (expected .cc, .cpp, .cxx, .c++, .C, .c, .h, .hh, .hpp, .hxx, .inc, .S, .s, .asm, .a, .lib, .pic.a, .lo, .pic.lo, .so, .dylib, .dll, .o or .pic.o). Since this rule was created by the macro 'tf_kernel_library', the error might have been caused by the macro implementation in /home/zjc/DeepLearning/tensorflow-noscope/tensorflow/tensorflow.bzl:634:12. ERROR: /home/zjc/DeepLearning/tensorflow-noscope/tensorflow/noscope/darknet/BUILD:10:1: in srcs attribute of cc_library rule //tensorflow/noscope/darknet:yolo_gpu: '//tensorflow/noscope/darknet:src/crop_layer_kernels.cu' does not produce any cc_library srcs files (expected .cc, .cpp, .cxx, .c++, .C, .c, .h, .hh, .hpp, .hxx, .inc, .S, .s, .asm, .a, .lib, .pic.a, .lo, .pic.lo, .so, .dylib, .dll, .o or .pic.o). Since this rule was created by the macro 'tf_kernel_library', the error might have been caused by the macro implementation in /home/zjc/DeepLearning/tensorflow-noscope/tensorflow/tensorflow.bzl:634:12. ERROR: /home/zjc/DeepLearning/tensorflow-noscope/tensorflow/noscope/darknet/BUILD:10:1: in srcs attribute of cc_library rule //tensorflow/noscope/darknet:yolo_gpu: file '//tensorflow/noscope/darknet:src/deconvolutional_kernels.cu' is misplaced here (expected .cc, .cpp, .cxx, .c++, .C, .c, .h, .hh, .hpp, .hxx, .inc, .S, .s, .asm, .a, .lib, .pic.a, .lo, .pic.lo, .so, .dylib, .dll, .o or .pic.o). Since this rule was created by the macro 'tf_kernel_library', the error might have been caused by the macro implementation in /home/zjc/DeepLearning/tensorflow-noscope/tensorflow/tensorflow.bzl:634:12. ERROR: /home/zjc/DeepLearning/tensorflow-noscope/tensorflow/noscope/darknet/BUILD:10:1: in srcs attribute of cc_library rule //tensorflow/noscope/darknet:yolo_gpu: '//tensorflow/noscope/darknet:src/deconvolutional_kernels.cu' does not produce any cc_library srcs files (expected .cc, .cpp, .cxx, .c++, .C, .c, .h, .hh, .hpp, .hxx, .inc, .S, .s, .asm, .a, .lib, .pic.a, .lo, .pic.lo, .so, .dylib, .dll, .o or .pic.o). Since this rule was created by the macro 'tf_kernel_library', the error might have been caused by the macro implementation in /home/zjc/DeepLearning/tensorflow-noscope/tensorflow/tensorflow.bzl:634:12. ERROR: /home/zjc/DeepLearning/tensorflow-noscope/tensorflow/noscope/darknet/BUILD:10:1: in srcs attribute of cc_library rule //tensorflow/noscope/darknet:yolo_gpu: file '//tensorflow/noscope/darknet:src/dropout_layer_kernels.cu' is misplaced here (expected .cc, .cpp, .cxx, .c++, .C, .c, .h, .hh, .hpp, .hxx, .inc, .S, .s, .asm, .a, .lib, .pic.a, .lo, .pic.lo, .so, .dylib, .dll, .o or .pic.o). Since this rule was created by the macro 'tf_kernel_library', the error might have been caused by the macro implementation in /home/zjc/DeepLearning/tensorflow-noscope/tensorflow/tensorflow.bzl:634:12. ERROR: /home/zjc/DeepLearning/tensorflow-noscope/tensorflow/noscope/darknet/BUILD:10:1: in srcs attribute of cc_library rule //tensorflow/noscope/darknet:yolo_gpu: '//tensorflow/noscope/darknet:src/dropout_layer_kernels.cu' does not produce any cc_library srcs files (expected .cc, .cpp, .cxx, .c++, .C, .c, .h, .hh, .hpp, .hxx, .inc, .S, .s, .asm, .a, .lib, .pic.a, .lo, .pic.lo, .so, .dylib, .dll, .o or .pic.o). Since this rule was created by the macro 'tf_kernel_library', the error might have been caused by the macro implementation in /home/zjc/DeepLearning/tensorflow-noscope/tensorflow/tensorflow.bzl:634:12. ERROR: /home/zjc/DeepLearning/tensorflow-noscope/tensorflow/noscope/darknet/BUILD:10:1: in srcs attribute of cc_library rule //tensorflow/noscope/darknet:yolo_gpu: file '//tensorflow/noscope/darknet:src/im2col_kernels.cu' is misplaced here (expected .cc, .cpp, .cxx, .c++, .C, .c, .h, .hh, .hpp, .hxx, .inc, .S, .s, .asm, .a, .lib, .pic.a, .lo, .pic.lo, .so, .dylib, .dll, .o or .pic.o). Since this rule was created by the macro 'tf_kernel_library', the error might have been caused by the macro implementation in /home/zjc/DeepLearning/tensorflow-noscope/tensorflow/tensorflow.bzl:634:12. ERROR: /home/zjc/DeepLearning/tensorflow-noscope/tensorflow/noscope/darknet/BUILD:10:1: in srcs attribute of cc_library rule //tensorflow/noscope/darknet:yolo_gpu: '//tensorflow/noscope/darknet:src/im2col_kernels.cu' does not produce any cc_library srcs files (expected .cc, .cpp, .cxx, .c++, .C, .c, .h, .hh, .hpp, .hxx, .inc, .S, .s, .asm, .a, .lib, .pic.a, .lo, .pic.lo, .so, .dylib, .dll, .o or .pic.o). Since this rule was created by the macro 'tf_kernel_library', the error might have been caused by the macro implementation in /home/zjc/DeepLearning/tensorflow-noscope/tensorflow/tensorflow.bzl:634:12. ERROR: /home/zjc/DeepLearning/tensorflow-noscope/tensorflow/noscope/darknet/BUILD:10:1: in srcs attribute of cc_library rule //tensorflow/noscope/darknet:yolo_gpu: file '//tensorflow/noscope/darknet:src/maxpool_layer_kernels.cu' is misplaced here (expected .cc, .cpp, .cxx, .c++, .C, .c, .h, .hh, .hpp, .hxx, .inc, .S, .s, .asm, .a, .lib, .pic.a, .lo, .pic.lo, .so, .dylib, .dll, .o or .pic.o). Since this rule was created by the macro 'tf_kernel_library', the error might have been caused by the macro implementation in /home/zjc/DeepLearning/tensorflow-noscope/tensorflow/tensorflow.bzl:634:12. ERROR: /home/zjc/DeepLearning/tensorflow-noscope/tensorflow/noscope/darknet/BUILD:10:1: in srcs attribute of cc_library rule //tensorflow/noscope/darknet:yolo_gpu: '//tensorflow/noscope/darknet:src/maxpool_layer_kernels.cu' does not produce any cc_library srcs files (expected .cc, .cpp, .cxx, .c++, .C, .c, .h, .hh, .hpp, .hxx, .inc, .S, .s, .asm, .a, .lib, .pic.a, .lo, .pic.lo, .so, .dylib, .dll, .o or .pic.o). Since this rule was created by the macro 'tf_kernel_library', the error might have been caused by the macro implementation in /home/zjc/DeepLearning/tensorflow-noscope/tensorflow/tensorflow.bzl:634:12. ERROR: /home/zjc/DeepLearning/tensorflow-noscope/tensorflow/noscope/darknet/BUILD:10:1: in srcs attribute of cc_library rule //tensorflow/noscope/darknet:yolo_gpu: file '//tensorflow/noscope/darknet:src/network_kernels.cu' is misplaced here (expected .cc, .cpp, .cxx, .c++, .C, .c, .h, .hh, .hpp, .hxx, .inc, .S, .s, .asm, .a, .lib, .pic.a, .lo, .pic.lo, .so, .dylib, .dll, .o or .pic.o). Since this rule was created by the macro 'tf_kernel_library', the error might have been caused by the macro implementation in /home/zjc/DeepLearning/tensorflow-noscope/tensorflow/tensorflow.bzl:634:12. ERROR: /home/zjc/DeepLearning/tensorflow-noscope/tensorflow/noscope/darknet/BUILD:10:1: in srcs attribute of cc_library rule //tensorflow/noscope/darknet:yolo_gpu: '//tensorflow/noscope/darknet:src/network_kernels.cu' does not produce any cc_library srcs files (expected .cc, .cpp, .cxx, .c++, .C, .c, .h, .hh, .hpp, .hxx, .inc, .S, .s, .asm, .a, .lib, .pic.a, .lo, .pic.lo, .so, .dylib, .dll, .o or .pic.o). Since this rule was created by the macro 'tf_kernel_library', the error might have been caused by the macro implementation in /home/zjc/DeepLearning/tensorflow-noscope/tensorflow/tensorflow.bzl:634:12. ERROR: Analysis of target '//tensorflow/noscope:noscope' failed; build aborted.
can someone help me fix this?