# GTX 295 executing CUDA code slower than 8600

**URL:** <https://forums.developer.nvidia.com/t/gtx-295-executing-cuda-code-slower-than-8600/9749>\
**Category:** CUDA Programming and Performance\
**Created:** [May 27, 2009, 7:20pm UTC](https://forums.developer.nvidia.com/t/gtx-295-executing-cuda-code-slower-than-8600/9749 "2009-05-27T19:20:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jcog](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@jcog](https://forums.developer.nvidia.com/u/jcog)\
**Post date:** [May 27, 2009, 7:20pm UTC](https://forums.developer.nvidia.com/t/gtx-295-executing-cuda-code-slower-than-8600/9749/1 "2009-05-27T19:20:45Z")

</div>

I’ve written a program that does interpolations of image pixel data and assigns the result to an output array. I ran the program on a lower end computer using an 8600 and the CUDA function took about 3.6 seconds to complete. I did the same test on a higher end computer using a GTX 295 and the function took about 6.1 seconds to complete. I’m mainly just looking for some general answers as to if this should be possible and where I should be looking for the reason its happening (execution config, memory management, etc.).

---

<div class="post-metadata">

**Author:** ![Tobi\_W](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@Tobi\_W](https://forums.developer.nvidia.com/u/Tobi_W)\
**Post date:** [May 28, 2009, 6:25am UTC](https://forums.developer.nvidia.com/t/gtx-295-executing-cuda-code-slower-than-8600/9749/2 "2009-05-28T06:25:46Z")

</div>

Are there enough thread blocks to utilize the new GPU? Try to compile with ‘-arch sm\_13’. To fully load your GTX 295 you need 2 host threads which both execute a kernel, because the GTX 295 has actually 2 GPUs.

Nevertheless I would expect your code should be executed much faster…

---

<div class="post-metadata">

**Author:** ![cbuchner1](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/cbuchner1/32/14168_2.png) [@cbuchner1](https://forums.developer.nvidia.com/u/cbuchner1)\
**Post date:** [May 28, 2009, 7:56am UTC](https://forums.developer.nvidia.com/t/gtx-295-executing-cuda-code-slower-than-8600/9749/3 "2009-05-28T07:56:12Z")

</div>

> [@](#):
>
> I’ve written a program that does interpolations of image pixel data and assigns the result to an output array. I ran the program on a lower end computer using an 8600 and the CUDA function took about 3.6 seconds to complete. I did the same test on a higher end computer using a GTX 295 and the function took about 6.1 seconds to complete. I’m mainly just looking for some general answers as to if this should be possible and where I should be looking for the reason its happening (execution config, memory management, etc.).

If one machine uses Windows Vista, the other Machine Windows XP there can be dramatic performance differences.

Vista has new different driver model, which adds some extra overhead.

If you’re running Linux, forget what I just said.

---

<div class="post-metadata">

**Author:** ![Noel\_Lopes](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@Noel\_Lopes](https://forums.developer.nvidia.com/u/Noel_Lopes)\
**Post date:** [June 2, 2009, 10:02am UTC](https://forums.developer.nvidia.com/t/gtx-295-executing-cuda-code-slower-than-8600/9749/4 "2009-06-02T10:02:41Z")

</div>

I once had a program that worked fine on a GT8600 and give weird results on a GTX 280. It turns out thatr I have several blocks writing the same memory locations. the GT8600 could only run a few blocks at the same time so there was no problem, on the GTX 280 however …

So maybe you have a bottleneck somewhere in your code and it gets worse when you have a device capable of running more blocks. Have you tryed to run the profiler?
