{"id":13574750,"url":"https://github.com/kaanolgu/bfs-sycl-fpga","last_synced_at":"2025-04-04T18:32:01.905Z","repository":{"id":185910480,"uuid":"673099250","full_name":"kaanolgu/bfs-sycl-fpga","owner":"kaanolgu","description":"The Breadth-First Search algorithm implementation using Intel oneAPI (SYCL2020) on Intel Stratix10 FPGAs","archived":false,"fork":false,"pushed_at":"2024-04-01T13:10:23.000Z","size":168,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-08-02T15:12:06.194Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kaanolgu.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}},"created_at":"2023-07-31T21:47:43.000Z","updated_at":"2024-01-15T13:11:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"c995f880-a1b7-4e6f-84e8-b670209c19c0","html_url":"https://github.com/kaanolgu/bfs-sycl-fpga","commit_stats":null,"previous_names":["kaanolgu/bfs-sycl-fpga"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaanolgu%2Fbfs-sycl-fpga","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaanolgu%2Fbfs-sycl-fpga/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaanolgu%2Fbfs-sycl-fpga/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaanolgu%2Fbfs-sycl-fpga/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kaanolgu","download_url":"https://codeload.github.com/kaanolgu/bfs-sycl-fpga/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223153520,"owners_count":17096546,"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-01T15:00:54.374Z","updated_at":"2024-11-05T10:31:04.134Z","avatar_url":"https://github.com/kaanolgu.png","language":"C++","funding_links":[],"categories":["Table of Contents"],"sub_categories":["Mathematics and Science"],"readme":"# bfs-sycl-fpga\nThis work has been ~submitted~ [accepted](https://www.iwocl.org/iwocl-2024/program/#conf-wed) to 12th International Workshop on OpenCL and SYCL (IWOCL24)\n\nThe Breadth-First Search implementations _memoryBFS_ and _streamingBFS_ using Intel oneAPI (SYCL2020) on Intel FPGAs\n* **_memoryBFS_:** We applied the typical optimisations proposed in the official guidelines alongside an automatic cache to achieve proper pipelining and improve random memory accesses performance. However, limitations occurred with fine-grained parallelism, and it was competitive only to some related work that utilised hardware-description languages or established high-level synthesis tools.\n* **_streamingBFS_:** We added bit-level representations of data in memory, banking in on-chip memory, and fine-grained control over parallel data streams to achieve higher throughput.\n\nAuthors : [Kaan Olgu](https://research-information.bris.ac.uk/en/persons/kaan-olgu-2) \u0026 [Tobias Kenter](https://www.uni-paderborn.de/en/person/3145)\n\n\n## Producing and Converting Datasets\nTested with Python 3.9.6\n```bash\npython -m venv venv-graphgen\n. venv-graphgen/bin/activate\npip install -U pip\npip install numpy networkit pandas\npip install cython;\ncd scripts\npython genGraph.py rmat 24 16\n```\nIf you have datasets ready as text file, convert graph text files to the bin files : \n```bash\npython generator.py (dataset name) (partition) (nnz/row)\npython generator.py wiki-Talk 1 nnz\n```\n\n## Build for Hardware Execution\n```bash\ncd *BFS\nmkdir build\ncd build\n# for memoryBFS:\ncmake .. -DFPGA_DEVICE=$AOCL_BOARD_PACKAGE_ROOT:$FPGA_BOARD_NAME -DNUM_COMPUTE_UNITS=4 \n# for streamingBFS\ncmake .. -DFPGA_DEVICE=$AOCL_BOARD_PACKAGE_ROOT:$FPGA_BOARD_NAME -DNUM_COMPUTE_UNITS=4 -DK_MEMORY_CACHE=131072\nmake fpga\n```\n\n## Build for Hardware Emulation\n```bash\ncd bfs_*cu\nmkdir build\ncd build\n# for memoryBFS:\ncmake .. -DFPGA_DEVICE=$AOCL_BOARD_PACKAGE_ROOT:$FPGA_BOARD_NAME -DNUM_COMPUTE_UNITS=4 \n# for streamingBFS\ncmake .. -DFPGA_DEVICE=$AOCL_BOARD_PACKAGE_ROOT:$FPGA_BOARD_NAME -DNUM_COMPUTE_UNITS=4 -DK_MEMORY_CACHE=131072\nmake fpga_emu\n```\n\n## AOCL Profiler\n```bash\ncd memoryBFS\naocl profile -output-dir /path/to/memoryBFS/aocl/ ./build/bfs.fpga (GraphName)  (Partition) (RootNode)\n```\n\n## Optimisations\n[Optimisations Wiki Page](https://github.com/kaanolgu/bfs-sycl-fpga/wiki/Optimisation-Guide)\n\n\n## Acknowledgements\n* [University of Paderborn Noctua 2](https://pc2.uni-paderborn.de/hpc-services/available-systems/noctua2)\n* [Intel DevCloud for OneAPI](https://devcloud.intel.com/oneapi/)\n\n\n## Citing\nPlease cite our work via this reference:\n\u003e Kaan Olgu, Tobias Kenter, Jose Nunez-Yanez, and Simon McIntosh-Smith. 2024. Optimisation and Evaluation of Breadth First Search with oneAPI/SYCL on Intel FPGAs: from Describing Algorithms to Describing Architectures. In International Workshop on OpenCL and SYCL (IWOCL ’24), April 8–11, 2024, Chicago, IL, USA. ACM, New York, NY, USA, 11 pages. https://doi.org/10.1145/3648115.3648134\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaanolgu%2Fbfs-sycl-fpga","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaanolgu%2Fbfs-sycl-fpga","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaanolgu%2Fbfs-sycl-fpga/lists"}