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

Added pragma to ignore unused-private-field error on elementType_ #872

Merged
merged 2 commits into from
Nov 22, 2021

Conversation

dameikle
Copy link
Contributor

@dameikle dameikle commented Aug 3, 2021

Description

Added pragma to ignore unused-private-field error on elementType_ in expanded_gemm.h when compiling on macOS without USE_FBGEMM.

Added dependencies: none

How to test

Built using on macOS
cmake .. -DBUILD_ARCH=x86-64 -DCMAKE_OSX_ARCHITECTURES=x86_64 -DCOMPILE_CPU=on -DCOMPILE_AVX=off -DCOMPILE_AVX2=off -DCOMPILE_AVX512=off -DUSE_SENTENCEPIECE=on -DUSE_APPLE_ACCELERATE=on

Ran unit tests which all passed and CPU regression tests which passed apart from:

  • tests/models/wnmt18/test_student_small.sh
  • tests/models/wnmt18/test_student_small_aan.sh

Both looked like small translation differences from the log

Checklist

  • I have tested the code manually
  • I have run regression tests
  • I have read and followed CONTRIBUTING.md
  • I have updated CHANGELOG.md

@emjotde
Copy link
Member

emjotde commented Aug 3, 2021

Hi and thanks.
Looks like that field is actually unused. I will take a look if it can just be removed instead.

@kpu
Copy link
Member

kpu commented Nov 22, 2021

Ping @emjotde. It's needed to compile on some Mac OS X.

@snukky snukky merged commit 3b4e943 into marian-nmt:master Nov 22, 2021
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.

4 participants