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

pmem2: enable movdir64b compilation but disable it in the runtime #5471

Merged
merged 1 commit into from
Aug 8, 2022

Conversation

lplewa
Copy link
Member

@lplewa lplewa commented Jul 18, 2022

This change is Reviewable

@lgtm-com
Copy link

lgtm-com bot commented Jul 18, 2022

This pull request introduces 2 alerts when merging 4cfddc7 into b2b1563 - view on LGTM.com

new alerts:

  • 2 for Duplicate include guard

@lgtm-com
Copy link

lgtm-com bot commented Jul 18, 2022

This pull request introduces 2 alerts when merging cb304f9 into b2b1563 - view on LGTM.com

new alerts:

  • 2 for Duplicate include guard

@lgtm-com
Copy link

lgtm-com bot commented Jul 18, 2022

This pull request introduces 2 alerts when merging 9ad3fb7 into b2b1563 - view on LGTM.com

new alerts:

  • 2 for Duplicate include guard

@codecov
Copy link

codecov bot commented Jul 19, 2022

Codecov Report

Merging #5471 (29c453f) into stable-1.12 (91f4159) will increase coverage by 0.05%.
The diff coverage is 0.00%.

@@               Coverage Diff               @@
##           stable-1.12    #5471      +/-   ##
===============================================
+ Coverage        72.22%   72.28%   +0.05%     
===============================================
  Files              193      195       +2     
  Lines            30335    30215     -120     
===============================================
- Hits             21909    21840      -69     
+ Misses            8426     8375      -51     

@kswiecicki
Copy link
Contributor

src/test/pmem2_memcpy/TESTS.py line 80 at r1 (raw file):

@t.add_params('wc_workaround', ['on', 'off', 'default'])
class TEST5(Pmem2Memcpy):
    envs1 = ("PMEM_MOVDIR64B",)

Have you tested if tests with PMEM_MOVDIR64B=1 are not failing on the platforms lacking movdir64b instruction?
I'm wondering if the tests are aware that even if PMEM_MOVDIR64B is set to 1 it still won't be used if the platform doesn't support it.

Code quote:

@t.require_architectures('x86_64')
@t.add_params('wc_workaround', ['on', 'off', 'default'])
class TEST5(Pmem2Memcpy):
    envs1 = ("PMEM_MOVDIR64B",)

@kswiecicki
Copy link
Contributor

Could you fix the #ifndef PMEM2_MEMSET_AVX512F_H define in the memset_movdir64b.h, LGTM is reporting this issue.
I must have left it unchanged by accident when I created this header.

Copy link
Member Author

@lplewa lplewa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 0 of 20 files reviewed, 1 unresolved discussion (waiting on @kswiecicki)


src/test/pmem2_memcpy/TESTS.py line 80 at r1 (raw file):

Previously, kswiecicki (Krzysztof Święcicki) wrote…

Have you tested if tests with PMEM_MOVDIR64B=1 are not failing on the platforms lacking movdir64b instruction?
I'm wondering if the tests are aware that even if PMEM_MOVDIR64B is set to 1 it still won't be used if the platform doesn't support it.

Yeah. it works. Our tests are very simple. We are not checking which instruction is used, but only a correction of operation.

In your case, if forced instruction is not available, PMDK is selecting a different one.

@lplewa
Copy link
Member Author

lplewa commented Aug 5, 2022

Could you fix the #ifndef PMEM2_MEMSET_AVX512F_H define in the memset_movdir64b.h, LGTM is reporting this issue. I must have left it unchanged by accident when I created this header.

done

@kswiecicki
Copy link
Contributor

:lgtm:

@pbalcer pbalcer merged commit 38ebb59 into pmem:stable-1.12 Aug 8, 2022
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

Successfully merging this pull request may close these issues.

3 participants