-
Notifications
You must be signed in to change notification settings - Fork 224
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
[NHWC] Enable batch norm by refactoring OCL kernel #1244
Conversation
This comment has been minimized.
This comment has been minimized.
@DrizztDoUrden Please review problem description changes. |
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.
Some cosmetic changes + recommendations
UPDATE: "Cosmetic" changes are actually mandatory.
@ce1adon What is your plan about testing? |
As mentioned in the meeting, we will collaborate with the clients about the test. |
@ce1adon It seems like I missed that. Let's discuss next Tuesday. |
@ce1adon I think we need to add at least some tests to exercise this kernel. |
+1 |
ping @ce1adon for updates on this PR. Thanks! |
Debugging accuracy issues in ctest. |
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.
No objections!
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.
LGTM
#endif | ||
|
||
#if (MIO_LAYOUT_NHWC != 0) || (MIO_LAYOUT_NHWC != 1) | ||
#error MIO_LAYOUT_NHWC must be 0 or 1 |
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.
[Recommendation] Oops, I am afraid we need double quotes around error message.
#error MIO_LAYOUT_NHWC must be 0 or 1 | |
#error "MIO_LAYOUT_NHWC must be 0 or 1" |
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.
@atamazov I'm afraid I might have messed up something and trying to correct them:
[2021-12-16T21:18:03.373Z] 13/93 Test #3: test_bn_3d_spatial_test ...............................***Failed Error regular expression found in output. Regex=[FAILED] 1.34 sec
[2021-12-16T21:18:03.373Z] Choosing smaller input values for low dims
[2021-12-16T21:18:03.373Z] MIOpen(OpenCL): Error [BuildProgram] Build log: /tmp/comgr-547839/input/CompileSource:446:2: error: "MIO_LAYOUT_NHWC must be 0 or 1"
[2021-12-16T21:18:03.373Z] #error "MIO_LAYOUT_NHWC must be 0 or 1"
[2021-12-16T21:18:03.373Z] ^
[2021-12-16T21:18:03.373Z] 1 error generated.
[2021-12-16T21:18:03.373Z] Error: Failed to compile opencl source (from CL or HIP source to LLVM IR).
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.
Maybe #error macro is not accepted in COMGR or hipRTC?
Nope, I've seen other examples in other .cl files
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.
OMG we shall use &&
, not ||
🤕
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.
@atamazov ah, I'm so distracted and should have figured it out sooner :) I'm going to change it really soon.
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.
LGTM
@ce1adon If would be nice if you bless this PR as well ;) |
No description provided.