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 9255235
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T11:40:15+00:00 2026-06-18T11:40:15+00:00

Calling: cudaExtent extent = make_cudaExtent( 1920 * sizeof(float), 1080, 10); chanDesc = cudaCreateChannelDesc (

  • 0

Calling:

cudaExtent extent = make_cudaExtent( 1920 * sizeof(float), 1080, 10);
chanDesc = cudaCreateChannelDesc ( 32, 0, 0, 0, cudaChannelFormatKindFloat);
err = cudaMalloc3DArray  ( &(devYAll[0]), &chanDesc, extent, 0); 

is failing with err=cudaErrorInvalidValue. When I use the first arguement to extent as 1024 or smaller then the call to 3D array succeeds. Is there somehow a limit on the size of the memory that can be allocated with cudaMalloc3DArray ?

  • 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-06-18T11:40:17+00:00Added an answer on June 18, 2026 at 11:40 am

    Yes there is a limit on extent size – either 2048x2048x2048 or 4096x4096x4096 depending on which hardware you have (from the details in your question I presume you have a Fermi card). But that true source of your problem is your make_cudaExtent call. For cudaMalloc3DArray, the first argument of extent should be given in elements, not bytes. This is why you are getting an error for first dimensions > 1024, as 1024 * sizeof(float) = 4096 which is the limit of Fermi GPUs.

    So to allocate a 1920x1080x10 3D array, do this:

    cudaExtent extent = make_cudaExtent( 1920, 1080, 10);
    chanDesc = cudaCreateChannelDesc ( 32, 0, 0, 0, cudaChannelFormatKindFloat);
    err = cudaMalloc3DArray  ( &(devYAll[0]), &chanDesc, extent, 0); 
    

    In this call, the size of the type is deduced from the channel description, and the extent dimensions are modified as required to meet the pitch/alignment requirements of the hardware.

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

Sidebar

Related Questions

Calling index.php?pConta=1&pDataInicial=01-01-2000&pDataFinal=31-12-2000 I get this notices: [08-Oct-2009 17:30:35] PHP Notice: Undefined index: pConta in
Calling the WriteObject Method from a background thread is not possible! Is there a
Calling TextRenderer.MeasureText as follows: TextRenderer.MeasureText(myControl.Text, myControl.Font); and comparing the result to the size of
Calling image = Image.open(data) image.thumbnail((36,36), Image.NEAREST) will maintain the aspect ratio. But I need
Calling Html.RenderPartial(~/Views/Payments/MyControl.ascx); from a view works if MyControl.ascx is a control that directly inherits
Calling the ajax called URL works well without ajax eg. http://localhost/ci/controller/method/param_value . But using
//calling class import javax.swing.JFrame; class jcheckkbox { public static void main(String args[]) { jRadio
Calling getActionBar returns null . This has been frequently reported so I've made sure
Calling urrlib2.urlopen on a link to an article fetched from an RSS feed leads
While calling from my Web Application, WCF response i am getting is : <s:Envelope

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.