You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

BUILD 767 B

123456789101112131415161718
  1. load("list.bzl", "cutlass_gen_list")
  2. genrule(
  3. name = "cutlass_kimpls",
  4. outs = cutlass_gen_list,
  5. cmd = """GEN=$(location //brain/megbrain/dnn/scripts/cutlass_generator:generator.py)
  6. pwd > /tmp/a
  7. echo $(@D) > /tmp/b
  8. python3 $$GEN --operations gemm --type simt $(@D)
  9. python3 $$GEN --operations gemv --type simt $(@D)
  10. python3 $$GEN --operations deconv --type simt $(@D)
  11. python3 $$GEN --operations conv2d --type simt $(@D)
  12. python3 $$GEN --operations conv2d --type tensorop8816 $(@D)
  13. python3 $$GEN --operations conv2d --type tensorop8832 $(@D)
  14. """,
  15. tools = ["//brain/megbrain/dnn/scripts/cutlass_generator:generator.py"],
  16. visibility = ["//visibility:public"],
  17. )

MegEngine 安装包中集成了使用 GPU 运行代码所需的 CUDA 环境,不用区分 CPU 和 GPU 版。 如果想要运行 GPU 程序,请确保机器本身配有 GPU 硬件设备并安装好驱动。 如果你想体验在云端 GPU 算力平台进行深度学习开发的感觉,欢迎访问 MegStudio 平台