Questions tagged [cuda]

A parallel computing platform and programming model developed by NVIDIA. Uses the many cores of a GPGPU to achieve high computational performance.

Filter by
Sorted by
Tagged with
0
votes
0answers
71 views

Texture dimensions guidelines

I have 3 related questions: What are the main optimizations related to power of 2 dimensions for 1D/2D/3D textures? This question gives some answers like mipmapping, but are not well explained and ...
0
votes
1answer
170 views

How can I write a D3D12 texture in cuda?

One point about such pipeline is that everything happens in GPU and bypass the CPU. The texture is created as such: ...
1
vote
1answer
25 views

What is the difference between cudaExternalMemoryHandleTypeD3D12Resource and cudaExternalMemoryHandleTypeD3D12Heap?

When we import a D3D12 memory object into cuda we do something like this: ...
0
votes
1answer
97 views

Is it possible to achieve the same performance of CUDA on OpenCL?

I am planning on porting some of my CPU code to GPU. I want my code to run on all GPUs, so openCL seems to be the right choice. Will I be able to achieve the same performance as of CUDA in openCL?. ...
4
votes
2answers
7k views

What's the difference between CUDA and Shader?

I am new to CUDA, and it seems that CUDA and Shader are both GPU programs. When we talk about GPU programming in rendering, like GPU voxelization, are we talking about CUDA or just converting data to ...
2
votes
1answer
157 views

Non-real time simulation of overlapping repulsive balls

I want to make a non-real time simulation of overlapping repulsive balls, initially in 2D and later in 3D. With "non-real" I mean that rendering is not needed after each time step. First of all, ...
6
votes
3answers
1k views

How to pass rendered frames from OpenGL to DirectX 11?

I have a dll that does some rendering using OpenGL. I need to render it to a texture and use that texture in direct x 11. My current attempt has been to render the OpenGL to a texture on one process,...
0
votes
2answers
136 views

Poor CUDA performance, raytracing

I use CUDA 7.5 to learn the basics of raytracing. So far I've done nothing but constant color no-lighting spheres-only raytracing. But my delta time is already 14 - 16 ms for 800x600 resolution - 1 ...
4
votes
1answer
546 views

Nvidia Nsight 4.6 VS Edition. The Graphics debugger can't find glew32.dll

I'm trying to debug some textures and FBO's with Nvidia Nsight 4.6 VS Edition. But when I select either "Start CUDA debugging" or "Start graphics debugging" I get an error. "The program can't start ...
1
vote
3answers
689 views

Grab depth buffer with unlockable D3DFORMAT

I'm currently piggy backing on a mod framework (Multitheft Auto) and trying to read the depth buffer in D3DFMT_D24S8 (DirectX9). I can read it if I change the format to D3DFMT_D32F_LOCKABLE and then ...
1
vote
2answers
2k views

Hundreds or even thousands of “slow” running CPUs emulated on GPU?

Introduction This question is specific to GPU programming. It's not primarily about the game idea. However, to better understand the question i will detail what it is i want to achieve in my game. ...
4
votes
1answer
810 views

GPGPU physics & game logic

I'm wondering about gpu accelarated physics after reading about Erwin Coumans presentation on GPU accelerated physics: http://www.gdcvault.com/play/1018185/GPU-Rigid-Body-Rigid-Body (demo video here: ...
5
votes
1answer
364 views

How to pass depth buffer from OGRE to CUDA?

I am using OGRE for rendering some objects. At every frame, I would like to pass the resulting depth buffer to CUDA for running some kernels on it and computing a result. How can I achieve this? How ...
5
votes
2answers
6k views

How to display an image stored in GPU video memory

My platform is Windows PC and C++. I am using an image buffer in GPU video memory via CUDA. Is there any way to directly send the content to GPU for display? Currently, I am getting the content into ...
0
votes
2answers
425 views

CUDA 4.1 Update

I'm currently working on porting a particle system to update on the GPU via the use of CUDA. With CUDA, I've already passed over the required data I need to the GPU and allocated and copied the date ...
4
votes
3answers
856 views

CUDA 4.1 Particle Update

I'm using CUDA 4.1 to parse in the update of my Particle system that I've made with DirectX 10. So far, my update method for the particle systems is 1 line of code within a for loop that makes each ...