inducer / inducer/pycuda

Adding two arrays is much slower on the GPU

Open
#152 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2.1k
Forks
298
Avg merge
4m
Merged PRs (30d)
1

Description

Hi,
I am adding two large arrays, for some reason (probably thread/block/grid size games) the CPU version is much faster.

I thought it is because the array size is too SMALL for the GPU to show any advantage, however, I increased the array size until I got CUDA out of memory error.

The full code is here:
https://github.com/QuantScientist/Data-Science-ArrayFire-GPU/blob/master/PyCUDA/02%20add%20with%20PyCUDA.ipynb

My device info is as follows:
```
1 device(s) found.
Device #0: GeForce GTX 1080

```
Thanks,

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.