mckernel | McKernel -
kandi X-RAY | mckernel Summary
kandi X-RAY | mckernel Summary
McKernel
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of mckernel
mckernel Key Features
mckernel Examples and Code Snippets
Community Discussions
Trending Discussions on mckernel
QUESTION
I make this program to practice cudaMemcpy3D() and Texture Memory.
Here comes the questions,when I print out tex3D
data,it is not same as initial data.The value I get is ncrss
times the initial value, and there are ncrss
interval numbers which equal to 0 between each other. If I set nsubs
to 2 or other bigger one, the time should be ncrss*nsubs
and interval will be ncrss*nsubs
.
Can you piont out where I made the mistakes. I think it probably is make_cudaPitchedPtr
at line 61, or make_cudaExtent
at line 56. And also may related with the way of array storaged.
So I come here for your help,appreciate for your comments and advices.
ANSWER
Answered 2017-Apr-06 at 23:22After a night thinking ,I find out the problem.
the cuda array load as M[fast][mid][low]
while c array is M[low][mid][fast]
.
so dim3()
,cudaExtent()
,pitchedPtr()
should be same to [low][mid][fast]
or at least should be same as each other.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install mckernel
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page