Problem 1711. Is there a GPU Device?

Solution 1818629

Submitted on 17 May 2019
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Fail
y_correct = 1; try gpuDevice catch y_correct = 0; end assert(isequal(your_fcn_name(),y_correct))

Undefined function or variable 'gpuDevice'. Error in your_fcn_name (line 2) y = gpuDevice(); Error in Test1 (line 7) assert(isequal(your_fcn_name(),y_correct))