Skip to content

Commit

Permalink
force GPU mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Harsh committed Jul 17, 2019
1 parent 7a20abe commit 02e32e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 02e32e3

Please sign in to comment.