-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[AMD]Enable EmitIndicesTest #3167
Conversation
This PR is created to discuss a proper way of enabling EmitIndicesTest for AMD target |
#ifdef USE_ROCM | ||
amdHelper.emitIndices( | ||
#else | ||
emitIndices( | ||
#endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that kind of code is not going to be maintainable. Can you refactor this code to layer things properly, either pass different parameters or use inheritance to be able to control to call different backends.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ThomasRaoux , Is #ifdef USE_ROCM
a red flag to decline merging? should I get rid of them?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, using #ifdef USE_ROCM
is a definitely a wrong way. I've introduced new directives and build different targets for Nvidia and AMD.
Unfortunately some of the tests are failed, so I disabled them. Please take a look
145f56f
to
b1a617e
Compare
842d5c4
to
ebd2477
Compare
2f84a39
to
c475830
Compare
Allows to test emmitting indices from different layouts. Valid also for AMD target device. Signed-off-by: joviliast <iveselov.nn@gmail.com>
Allows to test emmitting indices from different layouts. Valid also for AMD target device. Signed-off-by: joviliast <iveselov.nn@gmail.com>
Allows to test emmitting indices from different layouts. Valid also for AMD target device. Signed-off-by: joviliast <iveselov.nn@gmail.com>
Allows to test emmitting indices from different layouts. Valid also for AMD target device.