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

HIP Support of surface write functions in CUDA #3554

Closed
CanYing0913 opened this issue Jul 26, 2024 · 1 comment
Closed

HIP Support of surface write functions in CUDA #3554

CanYing0913 opened this issue Jul 26, 2024 · 1 comment

Comments

@CanYing0913
Copy link

Hi there. I am trying to use hipify-clang to convert my CUDA program to HIP, but it seems although texture-related APIs are handled, surface writes are not supported, and there are already a couple of GitHub issues on this matter in hipify repo: 134, 140, and 1010. I also took a look at related documentations here, but I didn't find any related pages on surface writes.
I noticed that the surface object initializing and destroying functions, hipCreateSurfaceObject and hipDestroySurfaceObject, are indeed supported here, but it would be more meaningful if those surface writes are also supported by HIP and hipify-clang tool. For example, surf2Dwrite() or surf3Dwrite(). Could you point me to the right direction? Are those surface-write functions supported, and how shall I translate them to HIP? Thanks!

@CanYing0913
Copy link
Author

Correct me if I am wrong: Looks like surface writes are supported: surf3DWrite()
And it does not need to be modified to use in HIP if corresponding cudaSurfaceObj_t is already hipSurfaceObj_t.

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

1 participant