{"id":19867682,"url":"https://github.com/cwsmith/oclsandbox","last_synced_at":"2026-06-13T10:32:49.410Z","repository":{"id":93889037,"uuid":"151274807","full_name":"cwsmith/oclsandbox","owner":"cwsmith","description":"opencl sandbox","archived":false,"fork":false,"pushed_at":"2018-10-17T15:55:27.000Z","size":57,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-01T00:39:13.602Z","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":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cwsmith.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":"2018-10-02T15:08:07.000Z","updated_at":"2018-10-17T15:55:29.000Z","dependencies_parsed_at":"2023-04-26T15:02:17.904Z","dependency_job_id":null,"html_url":"https://github.com/cwsmith/oclsandbox","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cwsmith/oclsandbox","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwsmith%2Foclsandbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwsmith%2Foclsandbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwsmith%2Foclsandbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwsmith%2Foclsandbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cwsmith","download_url":"https://codeload.github.com/cwsmith/oclsandbox/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwsmith%2Foclsandbox/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34281700,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-13T02:00:06.617Z","response_time":62,"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":[],"created_at":"2024-11-12T15:29:59.293Z","updated_at":"2026-06-13T10:32:49.391Z","avatar_url":"https://github.com/cwsmith.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# oclsandbox\nopencl sandbox\n\n## Dependencies\n\n- OpenCL 1.0\n- CMake 2.8\n- Altera OpenCL SDK 16\n\n## Build and run on Chameleon cloud FPGA in emulated mode\n\nMore info on the Chameleon Cloud FPGA nodes is here:\nhttps://chameleoncloud.readthedocs.io/en/latest/technical/fpga.html\n\n### Environment Setup\n\n```\nexport ALTERAOCLSDKROOT=/opt/altera_pro/16.0.2/hld\nexport AOCL_BOARD_PACKAGE_ROOT=/opt/altera_pro/16.0.2/hld/board/nalla_pcie\nexport LM_LICENSE_FILE=/opt/altera_pro/16.0.2/hld/license.dat\nsource /opt/altera_pro/16.0.2/hld/init_opencl.sh\n```\n\n### Build\n\n```\ngit clone git@github.com:cwsmith/oclsandbox\nmkdir build-oclsandbox\ncd !$\nexport CMAKE_PREFIX_PATH=/opt/altera_pro/16.0.2/hld/board/nalla_pcie/linux64/lib:\\\n/opt/altera_pro/16.0.2/hld/host/linux64/lib:\\\n/opt/altera_pro/16.0.2/hld/host/include:$CMAKE_PREFIX_PATH\ncmake ../oclsandbox/ -DENABLE_OPENCL_Altera=ON -DOPENCL_HPP_DIR=../oclsandbox/opencl -DFPGA_BOARD=p385a_sch_ax115\nmake\n```\n\n### Run\n\n```\ncd build-oclsandbox\nCL_CONTEXT_EMULATOR_DEVICE_ALTERA=1 ./reduction/reducer --device 0 --kernel ./reduction/reduce_sum.aocx\n```\n\nIf all goes well you will see the following output:\n\n```\nInputs: --device 0 --kernel ./reduction/reduce_sum.aocx \n\nUsing OpenCL device: EmulatorDevice : Emulated Device\nextension aocx\nkernel result 523776\n```\n\n## Build and run on Chameleon cloud FPGA\n\n### Build\n\nFollow the instructions above and add `-DKERNEL_CIRCUIT=ON` to the `cmake` command.\n\n### Run\n\n```\ncd build-oclsandbox\n./reduction/reducer --device 0 --kernel ./reduction/reduce_sum.aocx\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcwsmith%2Foclsandbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcwsmith%2Foclsandbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcwsmith%2Foclsandbox/lists"}