From 02e32e3417496c08ae10780795121589dfc348ea Mon Sep 17 00:00:00 2001 From: Harsh Date: Wed, 17 Jul 2019 22:38:13 +0530 Subject: [PATCH] force GPU mode --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 943e7db..93d0043 100644 --- a/src/index.js +++ b/src/index.js @@ -16,7 +16,7 @@ const benchmark = (options = {}) => { options.logs = typeof options.logs != 'undefined' ? options.logs : true; options.cpu_benchmark = typeof options.cpu_benchmark != 'undefined' ? options.cpu_benchmark : true; - options.gpu = options.gpu || new GPU(); + options.gpu = options.gpu || new GPU({mode: 'gpu'}); options.cpu = options.cpu || new GPU({mode: 'cpu'}); const out = run(options);