Socket
Socket
Sign inDemoInstall

gpu-mock.js

Package Overview
Dependencies
134
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    gpu-mock.js

A simple mocker for testing threaded development


Version published
Weekly downloads
4.2K
decreased by-29.36%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

gpu-mock.js

A simple mocker for testing threaded development.

GPU testing

GPU testing should be easy, but it isn't... ur, uh, wasn't. This lib aims to resolve that. By testing with simple javascript that is transpiled to GPU code, we can have the best of both worlds. A mature debugging environment (javascript), and an accelerated environment (glsl).

Install

npm i gpu-mock.js --saveDev

Use

import { gpuMock } from 'gpu-mock.js'

const testKernel = gpuMock(myKernelFunction, gpuJsOptions);

const results = testKernel();

Why

gpu.js, and further the GPU, do a lot under the hood that can make debugging challenging. gpu-mock.js provides a pure and simple javascript environment for testing the functions that are planned to be used with gpu.js.

Keywords

FAQs

Last updated on 21 Sep 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc