{"id":25508970,"url":"https://github.com/generic-matrix/node-js-cuda","last_synced_at":"2025-07-24T17:10:24.077Z","repository":{"id":150440323,"uuid":"224102490","full_name":"generic-matrix/node-js-cuda","owner":"generic-matrix","description":"Cuda Node JS binding using nan API with working example.","archived":false,"fork":false,"pushed_at":"2019-11-27T14:18:52.000Z","size":52,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-02T18:51:04.627Z","etag":null,"topics":["binding","cuda","cuda-node","node-js","node-js-cuda","nodejs","nodejs-gpu","nodejs-modules"],"latest_commit_sha":null,"homepage":"","language":"Cuda","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/generic-matrix.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":"2019-11-26T04:30:07.000Z","updated_at":"2022-10-09T08:52:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"9c43e355-7243-4bcd-acab-e0d3f41b1398","html_url":"https://github.com/generic-matrix/node-js-cuda","commit_stats":{"total_commits":33,"total_committers":1,"mean_commits":33.0,"dds":0.0,"last_synced_commit":"8c1392395f0aa66e185342345b0909752e9642b0"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/generic-matrix%2Fnode-js-cuda","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/generic-matrix%2Fnode-js-cuda/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/generic-matrix%2Fnode-js-cuda/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/generic-matrix%2Fnode-js-cuda/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/generic-matrix","download_url":"https://codeload.github.com/generic-matrix/node-js-cuda/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248225948,"owners_count":21068088,"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":["binding","cuda","cuda-node","node-js","node-js-cuda","nodejs","nodejs-gpu","nodejs-modules"],"created_at":"2025-02-19T08:31:38.197Z","updated_at":"2025-04-10T13:40:44.682Z","avatar_url":"https://github.com/generic-matrix.png","language":"Cuda","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Node JS Cuda binding\ncuda-node-js\n\n## Prerequisites :\n\n* **nvcc** must be installed. Check it using **nvcc —version**\n*  g++/cc to be installed.\n*  npm and node version 8.x +\n* **nan v8** is needed which can be installed by npm.\n\n## Working Example  :\nHere is the google Colab link \nThe test.cu you can get it this GitHub repo. in real time you can use your own **.cu** program .\n**Google colab link:**\nhttps://colab.research.google.com/drive/1ZQr696mvpMnHyImohrwwefxpgiNCAC-w\n\n## Compile from the source and test:\n\n```\ngit clone https://github.com/generic-matrix/node-js-cuda.git\ncd node-js-cuda \u0026\u0026 npm install --unsafe-perm -g\ncd node-js-cuda \u0026\u0026 node index.js\n   ```\n\n## Make sure to make it run we need to update the following directory as it may be machine specific :\n\n ```\"sources\": [ \"main.cpp\",'/content/node-js-cuda/test.o'],```\n \n ## And\n ```'library_dirs': [ '/usr/local/cuda/lib64']```\n in the **binding.gyp**\n\n\n\n## What’s next ?\n**We will need to implement shared memory** between nan and **.cu** so the GPUs access will become more faster \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeneric-matrix%2Fnode-js-cuda","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeneric-matrix%2Fnode-js-cuda","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeneric-matrix%2Fnode-js-cuda/lists"}