Skip to content

Path Tracing based on huawei ascend npu and written by c++ and ascend-c

License

Notifications You must be signed in to change notification settings

KVM-Explorer/AscendPathTracing

Repository files navigation

AscendPathTracing

Intro

Path Tracing based on huawei ascend npu and written by c++ and ascend-c

Tips&Lessons

NPU版本的算子无法支持常见系统库函数,CCE编译器缺少对应实现

x86项目开发调试构建

  1. 在当前项目创建env文件夹,下载最新的cann-toolkit的run版本,并移入env文件夹中
  2. 在当前操作系统安装Docker环境
  3. 生成docker容器环境
docker compose up -d

Demo运行

  • RUN_MODE
    • cpu
    • npu
  • SOC_VERSION
    • Ascend310P1
    • Ascend310B4 (Atlas 200 I DK)
  bash run.sh -r [RUN_MODE] -v  [SOC_VERSION] 
  bash run.sh -r cpu -v Ascend310P1

运行结果

image

TODO

  • 迁移到xmake,便于调试和运行
  • 实现一个简单的MemoryPool和allocator负责管理分配临时内存

About

Path Tracing based on huawei ascend npu and written by c++ and ascend-c

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published