{"id":22310407,"url":"https://github.com/AnyDSL/traversal","last_synced_at":"2025-07-29T07:33:05.587Z","repository":{"id":32317604,"uuid":"35892783","full_name":"AnyDSL/traversal","owner":"AnyDSL","description":"AnyDSL traversal code","archived":false,"fork":false,"pushed_at":"2019-02-18T16:22:25.000Z","size":46388,"stargazers_count":12,"open_issues_count":0,"forks_count":1,"subscribers_count":39,"default_branch":"master","last_synced_at":"2023-08-30T00:37:58.467Z","etag":null,"topics":["amdgpu","bvh","cuda","gpu","nvvm","raytracing","traversal"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AnyDSL.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-19T16:00:24.000Z","updated_at":"2023-08-30T00:37:58.468Z","dependencies_parsed_at":"2022-09-05T05:01:39.450Z","dependency_job_id":null,"html_url":"https://github.com/AnyDSL/traversal","commit_stats":null,"previous_names":[],"tags_count":1,"template":null,"template_full_name":null,"purl":"pkg:github/AnyDSL/traversal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnyDSL%2Ftraversal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnyDSL%2Ftraversal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnyDSL%2Ftraversal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnyDSL%2Ftraversal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AnyDSL","download_url":"https://codeload.github.com/AnyDSL/traversal/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnyDSL%2Ftraversal/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267646076,"owners_count":24120937,"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","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["amdgpu","bvh","cuda","gpu","nvvm","raytracing","traversal"],"created_at":"2024-12-03T21:01:24.280Z","updated_at":"2025-07-29T07:33:05.576Z","avatar_url":"https://github.com/AnyDSL.png","language":"C++","funding_links":[],"categories":["C++"],"sub_categories":[],"readme":"# Traversal #\n\nThis is the main repository for the AnyDSL traversal code.\n\n## Requirements\n\nThe traversal code comes in two flavours: \n  * A CPU version, which requires an x86 processor with the AVX, AVX2 and FMA instruction sets.\n  * A GPU version, based on CUDA, which requires a Maxwell GPU or a higher model.\n\n## Building\n\n    git clone https://user@github.com/AnyDSL/traversal.git\n    cd traversal\n    mkdir build\n    cd build\n    cmake-gui ..\n\n## Running\n\nThe frontend benchmarks the traversal code and generates an output which contains the intersection parameters.\nIt takes as input the scene file (which contains the acceleration structure) and the ray distribution.\nRun it with `-h` to get the list of options.\n\nWhen runnning the traversal on the GPU, make sure to run the executables in the directory where the file containing the compiled kernels (e.g. `traversal.nvvm` for the NVVM backend) is located.\n\nA sample BVH file and a primary ray distribution are provided for testing. You can use them with the frontend, like so (replace `\u003cversion\u003e` with `cpu` or `gpu`, depending on which device the traversal runs):\n\n    cd build/src\n    ./frontend_\u003cversion\u003e -a ../../testing/sibenik.bvh -r ../../testing/sibenik01.rays -n 80 -d 20 -o output.fbuf\n\nThen, check the results with the `fbuf2png` tool:\n\n    ./fbuf2png output.fbuf image.png\n\nYou can also use the BVH file with the `viewer` utility:\n\n    cd build/src\n    ./viewer_\u003cversion\u003e -a ../../testing/sibenik.bvh\n\n## Tools\n\nThis repository also includes some tools to generate ray distributions for primary rays, and to convert the output\nof the frontend into a PNG image. You need _libpng_ installed to compile them. Run them with `-h` to get the list of options.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAnyDSL%2Ftraversal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAnyDSL%2Ftraversal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAnyDSL%2Ftraversal/lists"}