-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Small cleanup of nnue_feature_transformer.h #5745
Small cleanup of nnue_feature_transformer.h #5745
Conversation
I noticed that sizeof(std::uint_fast8_t) is 1 byte which usually performs worse than int on modern 32 or 64 bit machines. What about std::uint_fast32_t or just leaving it as is? |
1a96f92
to
86b7ee6
Compare
done. would a re-test be needed? |
Still on lines 773 & 782. |
86b7ee6
to
b1eb8ce
Compare
i don't see a particular need to introduce a new type for loop variables |
b1eb8ce
to
3377f14
Compare
bench 1294909
3377f14
to
2f2c973
Compare
@@ -146,10 +146,10 @@ using psqt_vec_t = int32x4_t; | |||
#endif | |||
|
|||
|
|||
// Compute optimal SIMD register count for feature transformer accumulation. | |||
template<IndexType TransformedFeatureWidth, IndexType HalfDimensions> | |||
class SIMDTiling { |
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.
mh i dunno about making a this a class, i don't really a see a need to extrac this here
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.
also if VECTOR isn't defined we will just have an empty class?
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.
also if VECTOR isn't defined we will just have an empty class?
Yeah. the goal was to remove as much preprocessors directives from the main logic as possible.
Passed Non-regression STC:
LLR: 2.94 (-2.94,2.94) <-1.75,0.25>
Total: 285760 W: 73716 L: 73768 D: 138276
Ptnml(0-2): 777, 30775, 79851, 30677, 800
https://tests.stockfishchess.org/tests/view/676f78681a2f267f205485aa
bench 1294909