Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6874361
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:11:06+00:00 2026-05-27T04:11:06+00:00

After converting a 2D array from the CPU to the GPU’s memory to run

  • 0

After converting a 2D array from the CPU to the GPU’s memory to run on the GPU I face multiple errors from Matlab’s builtin functions such minmax(array) stating that my GPU variable is not an array or a cell:

??? Error using ==> minmax at 27 Data is not a matrix or cell array.

Though the passed variable is a converted 2D array, but the type is changed from <11x4096 double> to <11x4096 parallel.gpu.GPUArray>.

Anyone can help me make Matlab understand that the GPU variable is an array?

Thanks all.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T04:11:07+00:00Added an answer on May 27, 2026 at 4:11 am

    Only a small subset of MATLAB commands are supported for arrays stored on the GPU (i.e. arrays of type GPUArray).

    See this documentation page from Parallel Computing Toolbox for details of which functions are supported. You’ll notice that the list contains exclusively functions from base MATLAB such as arithmetic, exponential, and trigonometric functions, linear algebra and Fourier transforms; nothing close to the higher-level toolbox functions such as minmax from Neural Network Toolbox.

    Overloading a function for GPUArray input, so that it executes on the GPU rather than CPU, is a major job involving a reimplementation of the algorithm for the new and highly parallel architecture. In addition, only certain types of highly parallel algorithm will typically benefit from GPU parallelism. I therefore wouldn’t expect MathWorks to provide GPUArray support in Neural Network Toolbox any time soon.

    If you specifically need to parallelize minmax on the GPU, rather than neural networks in general, it wouldn’t be that hard to do it yourself – probably just a couple of lines involving min, max and arrayfun.

    Having said that, the error message could provide a lot more explanation of the problem. It looks like the developers know this as well: if you type edit nntype.data and look at line 93, which is where the error message comes from, you’ll see the comment line % TODO - More detailed response. Nice!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am converting from JSON to object and from object to array. It does
Can anyone help with converting data from an XML document into an associative array?
VS2008 shuts down right after converting any VS2005 solution. The solution icon is changed
I have a question about converting charset from inside mysql query. I have a
Trying to use the Phirehose class from https://github.com/fennb/phirehose After uploading everything to the server,
I'm a bit further along in converting some sample test/specs from Watir to Selenium.
I'm having some problems with converting some JSON and I'm after some help. This
After taking the summer off from C programming, I'm back in the thick of
I am working in Delphi XE2 I am converting base64 byte array to string
I'm new to python, coming from matlab. I have a large sparse matrix saved

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.