Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default INDEX_TYPE for arrays #41

Closed
rrsettgast opened this issue Nov 29, 2018 · 3 comments
Closed

default INDEX_TYPE for arrays #41

rrsettgast opened this issue Nov 29, 2018 · 3 comments
Assignees

Comments

@rrsettgast
Copy link
Member

figure out what the best INDEX_TYPE for arrays is on each platform. I notice all the index types I see in cuda examples are "int". Does that mean that we should be using "int" indices when running cuda kernels? Perhaps this should be a platform dependent type?

@artv3
Copy link
Contributor

artv3 commented Dec 4, 2018

I chatted with another developer about this. The main benefit of using std:ptrdiff is that it will always be as long as an array needs to be and the compiler doesn't have to worry of overflowing.

@rrsettgast
Copy link
Member Author

who was the developer, and was there any discussion of speed?

@artv3
Copy link
Contributor

artv3 commented Dec 4, 2018

I chatted with Jason Burmark about this. I'm not sure if it matters too much in CUDA.

@corbett5 corbett5 closed this as completed Feb 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants