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

Are the words of the keys are arranged for AVX2 load? #2

Open
jerrychenhf opened this issue Jun 11, 2020 · 0 comments
Open

Are the words of the keys are arranged for AVX2 load? #2

jerrychenhf opened this issue Jun 11, 2020 · 0 comments

Comments

@jerrychenhf
Copy link

jerrychenhf commented Jun 11, 2020

For the below code from parallel-murmur3:

for (int i = 0; i < SizeWords; ++i) {
__m256i k = _mm256_loadu_si256((__m256i*) (keys + i * 8));

You use a single 256bit load instruction to load the first 32bit word for all the 8 keys. So the Nth words of all the 8 keys are already put together?

Even for columar data format like parquet, it only grantees the values of one column are put continuously in a byte array. It doesn't order the bytes or words of the keys in the way being able to load like above code.

This seems to be a very strictly data layout.

Would you please confirm this?

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