{"id":13644788,"url":"https://github.com/nihui/vkpeak","last_synced_at":"2025-03-23T02:09:24.989Z","repository":{"id":63124100,"uuid":"361155274","full_name":"nihui/vkpeak","owner":"nihui","description":"A tool which profiles Vulkan devices to find their peak capacities","archived":false,"fork":false,"pushed_at":"2024-09-22T12:03:45.000Z","size":31,"stargazers_count":114,"open_issues_count":12,"forks_count":4,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-15T04:04:59.791Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nihui.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-24T12:23:48.000Z","updated_at":"2025-02-27T16:23:07.000Z","dependencies_parsed_at":"2024-01-14T09:29:07.412Z","dependency_job_id":"9d49d486-5bf5-432c-a1ce-da025813af70","html_url":"https://github.com/nihui/vkpeak","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nihui%2Fvkpeak","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nihui%2Fvkpeak/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nihui%2Fvkpeak/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nihui%2Fvkpeak/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nihui","download_url":"https://codeload.github.com/nihui/vkpeak/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245044572,"owners_count":20551902,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T01:02:13.433Z","updated_at":"2025-03-23T02:09:24.970Z","avatar_url":"https://github.com/nihui.png","language":"C++","funding_links":[],"categories":["C++"],"sub_categories":[],"readme":"# vkpeak\n\n![CI](https://github.com/nihui/vkpeak/workflows/CI/badge.svg)\n\nA synthetic benchmarking tool to measure peak capabilities of vulkan devices. It only measures the peak metrics that can be achieved using vector operations and does not represent a real-world use case.\n\n## [Download](https://github.com/nihui/vkpeak/releases)\n\nDownload Windows/Linux/MacOS Executable for Intel/AMD/Nvidia GPU\n\n**https://github.com/nihui/vkpeak/releases**\n\n## Usages\n\n```shell\nvkpeak.exe 0\n```\n\nThe only parameter 0 is the device id.\n\nIf you encounter a crash or error, try upgrading your GPU driver:\n\n- Intel: https://downloadcenter.intel.com/product/80939/Graphics-Drivers\n- AMD: https://www.amd.com/en/support\n- NVIDIA: https://www.nvidia.com/Download/index.aspx\n\n## Build from Source\n\n1. Download and setup the Vulkan SDK from https://vulkan.lunarg.com/\n  - For Linux distributions, you can either get the essential build requirements from package manager\n```shell\ndnf install vulkan-headers vulkan-loader-devel\n```\n```shell\napt-get install libvulkan-dev\n```\n```shell\npacman -S vulkan-headers vulkan-icd-loader\n```\n\n2. Clone this project with all submodules\n\n```shell\ngit clone https://github.com/nihui/vkpeak.git\ncd vkpeak\ngit submodule update --init --recursive\n```\n\n3. Build with CMake\n  - You can pass -DUSE_STATIC_MOLTENVK=ON option to avoid linking the vulkan loader library on MacOS\n\n```shell\nmkdir build\ncd build\ncmake ..\ncmake --build . -j 4\n```\n\n## Sample\n\n```\n[nihui@nihui-pc build]$ ./vkpeak 0\ndevice       = GeForce RTX 2070\n\nfp32-scalar  = 8536.18 GFLOPS\nfp32-vec4    = 8473.82 GFLOPS\n\nfp16-scalar  = 8405.30 GFLOPS\nfp16-vec4    = 16261.30 GFLOPS\n\nfp64-scalar  = 262.86 GFLOPS\nfp64-vec4    = 262.86 GFLOPS\n\nint32-scalar = 8363.63 GIOPS\nint32-vec4   = 8313.07 GIOPS\n\nint16-scalar = 5518.05 GIOPS\nint16-vec4   = 7138.91 GIOPS\n```\n\n```\nnihui@nihui-macbook-air vkpeak-20210424-macos % ./vkpeak 0 \ndevice       = Apple M1\n\nfp32-scalar  = 2093.55 GFLOPS\nfp32-vec4    = 2369.02 GFLOPS\n\nfp16-scalar  = 2195.79 GFLOPS\nfp16-vec4    = 2513.04 GFLOPS\n\nfp64-scalar  = 0.00 GFLOPS\nfp64-vec4    = 0.00 GFLOPS\n\nint32-scalar = 653.38 GIOPS\nint32-vec4   = 649.56 GIOPS\n\nint16-scalar = 653.42 GIOPS\nint16-vec4   = 652.94 GIOPS\n```\n\n## Other Open-Source Code Used\n\n- https://github.com/Tencent/ncnn for fast neural network inference on ALL PLATFORMS\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnihui%2Fvkpeak","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnihui%2Fvkpeak","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnihui%2Fvkpeak/lists"}