https://github.com/amd/virtio-npu

https://github.com/amd/virtio-npu

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (5.2%) to scientific vocabulary
Last synced: 11 months ago · JSON representation

Repository

Basic Info
  • Host: GitHub
  • Owner: amd
  • License: other
  • Language: C
  • Default Branch: main
  • Size: 175 KB
Statistics
  • Stars: 7
  • Watchers: 5
  • Forks: 2
  • Open Issues: 0
  • Releases: 0
Created over 1 year ago · Last pushed 11 months ago
Metadata Files
Readme License

README.md

virtio-npu

Build instructions

git clone https://github.com/amd/virtio-npu.git cd virtio-npu git submodule update --init --recursive ./configure ./build.sh

xdna-driver submodule

  • Build and install amdxdna driver on host side
  • Build and run tests in VM

Please see https://github.com/amd/xdna-driver

Start VM with NPU

Build kernel image and rootfs. Then start the VM.

```

Kernel: /scratch/bzImage

Rootfs: /scratch/rootfs.img

qemu-system-x86_64 -enable-kvm -object memory-backend-memfd,id=mem1,size=8G -machine q35,accel=kvm,usb=off,dump-guest-core=off,memory-backend=mem1 -smp 4,sockets=4,cores=1,threads=1 -kernel /scratch/bzImage -nographic -append "root=/dev/vda console=ttyS0" -drive file=/scratch/rootfs.img,media=disk,cache=none,if=virtio -device virtio-accel-pci,accel-node=accel0 -cpu host ```

Test

Build and run simple test

gcc -Ivirglrenderer/src/ -Ivirglrenderer/src/drm/amdxdna/ -I/lib/modules/`uname -r`/build/include/uapi/drm/ -L/usr/lib/x86_64-linux-gnu ioctl_test.c -ldrm

Owner

  • Name: AMD
  • Login: amd
  • Kind: organization
  • Email: dl.DevSecOps-Github-Admin@amd.com

GitHub Events

Total
  • Issues event: 1
  • Watch event: 7
  • Member event: 4
  • Push event: 16
  • Fork event: 2
  • Create event: 2
Last Year
  • Issues event: 1
  • Watch event: 7
  • Member event: 4
  • Push event: 16
  • Fork event: 2
  • Create event: 2

Committers

Last synced: about 1 year ago

All Time
  • Total Commits: 10
  • Total Committers: 1
  • Avg Commits per committer: 10.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 10
  • Committers: 1
  • Avg Commits per committer: 10.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Lizhi Hou l****u@a****m 10
Committer Domains (Top 20 + Academic)
amd.com: 1

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 1
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 1
  • Total pull request authors: 0
  • Average comments per issue: 0.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 1
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 1
  • Pull request authors: 0
  • Average comments per issue: 0.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • DemiMarie (1)
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels