NVIDIA / NVIDIA/cuda-samples

cufftXtMemcpy device to device would change data value(simpleCUFFT_2d_MGPU)?

Open
#197 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
9.6k
Forks
2.4k
Avg merge
53m
Merged PRs (30d)
1

Description

Hi,
When I run the simpleCUFFT_2d_MGPU, after the call the result = cufftXtMemcpy(planComplex, d_d_f, d_f, CUFFT_COPY_DEVICE_TO_DEVICE);,I copyData d_f、d_d_f from gpus to host memory, like this,
image

In host Memory, d_f_out!=d_d_f_out. But according to the cuda docs
image
cufftXtMemcpy Device to Device just change the order of data in gpus,

So Is there something I do wrong?
Thanks.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue points to Samples/4_CUDA_Libraries/simpleCUFFT_2d_MGPU/simpleCUFFT_2d_MGPU.cu at line 255; start by reproducing the sample and inspecting the host copies of d_f and d_d_f after cufftXtMemcpy. Compare the observed ordering with the CUDA documentation and determine whether the discrepancy is in the sample or the reported copy usage. Done means a documented explanation or a confirmed sample fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
hpc
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.