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

  • Home
  • SEARCH
  • 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 444733
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T21:18:00+00:00 2026-05-12T21:18:00+00:00

I am trying to call cudppSort to sort a set of keys/values. I’m using

  • 0

I am trying to call cudppSort to sort a set of keys/values. I’m using the following code to set up the sort algorithm:

CUDPPConfiguration config;
config.op = CUDPP_ADD;
config.datatype = CUDPP_UINT;
config.algorithm = CUDPP_SORT_RADIX;
config.options = CUDPP_OPTION_KEY_VALUE_PAIRS | CUDPP_OPTION_FORWARD | CUDPP_OPTION_EXCLUSIVE;

CUDPPHandle planHandle;
CUDPPResult result = cudppPlan(&planHandle, config, number_points, 1, 0);
if (CUDPP_SUCCESS != result) {
    printf("ERROR creating CUDPPPlan\n");
    exit(-1);
}

The program exits, however on the line:

CUDPPResult result = cudppPlan(&planHandle, config, number_points, 1, 0);

and prints to stdout:

Cuda error: allocScanStorage in file 'c:/the/path/to/release1.1/cudpp/src/app/scan_app.cu' in line 279 : invalid configuration argument.

I looked at the line in scan_app.cu. It is,

 CUT_CHECK_ERROR("allocScanStorage");

So apparently my configuration has an error that is causing the allocScanStorage to bomb out. There are only two calls to CUDA_SAFE_CALL in the function and I don’t see a reason why either has anything to do with the configuration.

What is wrong with my configuration?

  • 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-12T21:18:01+00:00Added an answer on May 12, 2026 at 9:18 pm

    So that this doesn’t sit around as an unanswered question (I’m not sure if this is the right SO etiquette but it seems like an answered question shouldn’t sit around unanswered…), I’m copying the comment I made above here as an answer since it was the solution:

    I figured this out (I’m still learning CUDA at the moment.) Because the error checking is asynchronous errors can show up in strange places if you don’t check for them from time to time. My code had caused an error before I called cudppPlan but because I didn’t check for errors the cudppPlan reported the error as if it was in cudppPlan.

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

Sidebar

Related Questions

Trying to call a function from another file in C with the following code:
I'm trying to call io_submit using python ctypes. The code I'm writing is supposed
I am trying to call a webservice using ssl. How do i get the
I'm trying to call a php webservice using WCF. I googled some public php
I'm trying to call the SQL statement below but get the following error: System.Data.SqlClient.SqlException:
I am trying to call out to a legacy dll compiled from FORTRAN code.
Im trying to call some windows forms code (like setting label.visible = true in
In trying to call a method on the CodeMirror javascript code editor. I'm new
Been trying to call Preferences.java class using: Intent settingsActivity = new Intent(getBaseContext(), Preferences.class); startActivity(settingsActivity);
I am trying to call an ASMX from jQuery using JSON and get a

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.