-
Notifications
You must be signed in to change notification settings - Fork 86
Conversation
This PR needs Approvals as follows.
Please choose reviewers and requet reviews! Click to see how to approve each reviewsYou can approve this PR by triggered comments as follows.
See all trigger commentsPlease replace [Target] to review target
|
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.
@tk26eng Thanks. Great PR. I put just one comment.
'x86_64_True':'x86_avx' | ||
} | ||
|
||
lib_base_name = cpu_to_lib[cpu_name + '_' + str(use_avx)] |
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.
AVX is for x86 only.
Added True and False flag to all CPU architecture looks redundant.
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.
Yes, I know AVX flag is redundant for other CPU than x86.
But I used AVX flag for all CPUs to apply cpu_to_lib
table to make the code simple.
Is if statement
better than translation table ?
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.
But I used AVX flag for all CPUs to apply cpu_to_lib table to make the code simple.
Sorry, If my understand of your code is correct, I do not agree with you...
Add "_True" and "_False" to all lines are looks not suitable way.
How about to write like
cpu_to_lib = {
'aarch64':'aarch64',
'arm':'arm',
'arm_fpga':'fpga',
'x86_64':'x86_avx' if use_avx else 'x86_64',
}
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.
I wanted to remove if statement
but I gave it up .
I changed to use if statement
instead of table.
Is it OK for you ?
Please set readability reviewer after ownership approval. |
check_stderr_block=['error: '] | ||
) | ||
|
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.
@tk26eng
Sorry for little thing.
We do not change code style fix with other implementation.
@@ -336,9 +336,18 @@ def codegen_cpu(self, | |||
cache_dma=cache_dma, | |||
) | |||
|
|||
lib_name = 'libdlk_' + cpu_name | |||
if cpu_name == 'arm_fpga': |
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.
Thanks. Looks good for me.
ping @iizukak |
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.
OA
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.
Readability Approval (reverse-shadowing)
I left 1 small comment!
/ready |
⏳Merge job is queued... |
😥This PR is not approved yet. |
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.
Readability Approval
Thank you!!
/ready |
⏳Merge job is queued... |
What this patch does to fix the issue.
This PR removes dependency for
cmake
.Test should be modified to use
make
instead ofcmake
.Link to any relevant issues or pull requests.
Fix #436
Fix #542