{"id":20789719,"url":"https://github.com/jjfumero/fastr-gpu","last_synced_at":"2025-10-25T00:41:32.325Z","repository":{"id":197970558,"uuid":"319269156","full_name":"jjfumero/fastr-gpu","owner":"jjfumero","description":"Just In Time Compiler for GPUs for R applications. ","archived":false,"fork":false,"pushed_at":"2020-12-07T10:38:01.000Z","size":619183,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-12T00:30:51.832Z","etag":null,"topics":["gpgpu","gpu-computing","graalvm","jit-compiler","opencl","r-language","runtime","truffle"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jjfumero.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-12-07T09:32:39.000Z","updated_at":"2024-09-16T04:45:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"7b4acba8-63c4-421c-b3ed-d7cf9142b930","html_url":"https://github.com/jjfumero/fastr-gpu","commit_stats":null,"previous_names":["jjfumero/fastr-gpu"],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/jjfumero/fastr-gpu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jjfumero%2Ffastr-gpu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jjfumero%2Ffastr-gpu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jjfumero%2Ffastr-gpu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jjfumero%2Ffastr-gpu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jjfumero","download_url":"https://codeload.github.com/jjfumero/fastr-gpu/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jjfumero%2Ffastr-gpu/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279164787,"owners_count":26117788,"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-10-16T02:00:06.019Z","response_time":53,"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":["gpgpu","gpu-computing","graalvm","jit-compiler","opencl","r-language","runtime","truffle"],"created_at":"2024-11-17T15:26:31.262Z","updated_at":"2025-10-16T07:16:36.978Z","avatar_url":"https://github.com/jjfumero.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FastR-GPU Compiler \n\nThis is a fork of [FastR](https://github.com/oracle/fastr) with GPU support. The GPU backend is an extension of GraalVM and Graal Compiler with OpenCL code generation\nand data management for GPU computing. \n\nThe goal of the FastR-GPU compiler is to automatically execute R expressions on the GPU. It extends Truffle, Graal and a GPU backend for Graal (Marawacc) for compiling an R program into OpenCL. It profiles and specialises R input programs to OpenCL using the Graal Partial Evaluator and compiles the resulting intermediate representation to OpenCL at runtime.\nThis project is a research prototype. \n\n## Example\n\n```R\n\u003e marawacc.deviceInfo()\nNAME             : Hawaii\nVENDOR           : Advanced Micro Devices, Inc.\nTYPE             : GPU\nDRIVER           : 1598.5 (VM)\nMAX COMPUTE UNITS: 44\nMAX FREQUENCY    : 1030\nGLOBAL MEMORY    : 3221225472\nLOCAL  MEMORY    : 32768\nENDIANESS        : LITTLE_ENDIAN\n\n\n\u003e marawacc.init()\n\u003e size \u003c- 100000\n\u003e # It is executed on the GPU when the R program is JIT by Graal\n\u003e mapply(function(x, y) x * y, runif(size), runif(size)) \n\n```\n\n## Installation\n\nGet the `mx` tool:\n\n```bash\n$ mkdir ~/fastr-gpu/\n$ cd fastr-gpu\n$ git clone https://github.com/graalvm/mx\n$ cd mx \n$ git checkout 900cc06  \n$ cd -\n$ export PATH=$PWD/mx:$PATH\n```\n\nCreate source file: \n\n```bash\nexport PATH=/path/to/mx/mx/:$PATH\nexport JAVA_HOME=/path/to/jdk1.8x/\nexport DEFAULT_VM=\"server\"\n```\n\n\nGet the R \u0026 Marawacc (OpenCL) JIT compilers:\n\n```bash\n$ mkdir fastr-gpu\n$ cd fastr-gpu\n$ git clone git@github.com:jjfumero/jvmci-marawacc.git jvmci     ## Download JVMCI dependency\n$ git clone git@github.com:jjfumero/truffle-marawacc.git truffle ## Download Truffle dependency\n$ git clone https://github.com/jjfumero/graal-marawacc graal     ## Download Graal dependency\n$ git clone git@github.com:jjfumero/marawacc.git marawacc\n$ export JAVA_HOME=/home/juan/bin/jdk1.8.0_91\n$ export DEFAULT_VM=\"server\"\n$ export PATH=/home/juan/bin/gcc/gcc-5.4.0/bin/:$PATH\n$ export LD_LIBRARY_PATH=/home/juan/bin/gcc/gcc-5.4.0/lib64/:$LD_LIBRARY_PATH \n$ export PATH=$PWD/mx:$PATH\n$ cd marawacc\n$ make \n```\n\nBuild fastr-gpu:\n\n```bash\n$ cd ..\n$ git clone git@github.com:jjfumero/fastr-gpu.git\n$ cd fastr-gpu\n$ make \n$ . source.sh \n```\n\nBuild done!!! \n\n\n### Eclipse \n\nTo generate the Eclipse files:\n\n```bash\n$ make eclipse \n```\n\nThen import the projects into eclipse \n\n### Note\n\nThis compiler has been tested on Linux Fedora 21/22/23, CentOS 7.4 - CentOS 7.9 and OpenSuse 13 with OpenJDK \u003e= 1.8_61.\n\n**Current implementation with JDK 8 u91.**\n\n\n## Publications \n\n- Juan Fumero. **Accelerating interpreted programming languages on GPUs with just-in-time compilation and runtime optimisations**. PhD Dissertation, 30/11/2017 - [Link](https://era.ed.ac.uk/handle/1842/28718)\n\n- Juan Fumero, Michel Steuwer, Lukas Stadler, and Christophe Dubach.  **Just-In-Time GPU Compilation for Interpreted Languages with Partial Evaluation.** In Proceedings of the 13th ACM SIGPLAN/SIGOPS International Conference on Virtual Execution Environments (VEE '17). ACM, New York, NY, USA, 60-73. DOI: https://doi.org/10.1145/3050748.3050761 \n\n- Juan Fumero, Michel Steuwer, Lukas Stadler, Christophe Dubach. **OpenCL JIT Compilation for Dynamic Programming Language.** MoreVMs 2017. [http://conf.researchr.org/event/MoreVMs-2017/morevms-2017-papers-opencl-jit-compilation-for-dynamic-programming-languages](http://conf.researchr.org/event/MoreVMs-2017/morevms-2017-papers-opencl-jit-compilation-for-dynamic-programming-languages)\n\n\n## License\n\nGPL V2\n\n## Who do I talk to?\n\nThis project is a research prototype implemented at The University of Edinburgh. The project was partially funded by Oracle Labs.\n\n## Main Developer\n\n    Juan Fumero \u003c juan.fumero @ manchester.ac.uk \u003e\n\n## Advisors\n\n    Christophe Dubach \u003c christophe.dubach @ ed.ac.uk \u003e\n    Michel Steuwer \u003c michel.steuwer @ ed.ac.uk \u003e\n    Lukas Stadler \u003c lukas.stadler @ oracle.com \u003e\n\n\n# FastR\n\nFastR is an implementation of the [R Language](http://www.r-project.org/) in Java atop [Truffle and Graal](http://openjdk.java.net/projects/graal/).\nTruffle is a framework for building self-optimizing AST interpreters.\nGraal is a dynamic compiler that is used to generate efficient machine code from partially evaluated Truffle ASTs.\n\nFastR is an open-source effort of Purdue University, Johannes Kepler University Linz, and Oracle Labs.\n\nFor more details and instructions for downloading and building the system, please visit the [FastR Wiki](https://github.com/oracle/fastr).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjjfumero%2Ffastr-gpu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjjfumero%2Ffastr-gpu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjjfumero%2Ffastr-gpu/lists"}