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

FTHMC2p1f.c breaks Nc = 2 compilation #467

Open
ctpeterson opened this issue Jan 9, 2025 · 0 comments
Open

FTHMC2p1f.c breaks Nc = 2 compilation #467

ctpeterson opened this issue Jan 9, 2025 · 0 comments
Labels

Comments

@ctpeterson
Copy link

Describe the issue:

I am working on an Nc=2 implementation of stout smearing in Grid with Anna Hasenfratz and Simon Catterall. Compiling with --enable-Nc=2 prevented by "Nc = 3"-specific code in GaugeConfigurationMasked.h, which is used by FTHMC2p1f.c. Problem is fixed by replacing...

SU3:: ---> SU<Nc>::
#if 1 ---> #if 1 and (Nc == 3)
#if 0 ---> #if 0 and (Nc == 3)

The latter two replacements only affect the field transformation HMC methods in the GaugeConfigurationMasked header, which fail to compile due to LieAlgebraProject not compiling properly for Nc = 2. The first replacement is needed to compile the Nc=2 stout smearing method.

I've a version of the GaugeConfigurationMasked header that fixes the compilation issue in my fork of Grid. It also has additional assertions that should fail when Nc != 3 for the field transformation HMC methods. Additionally, I've provided the configure command that I run for the compilation below.

Code example:

No response

Target platform:

model name : AMD Ryzen 7 7840U w/ Radeon 780M Graphics

Configure options:

../configure --enable-simd=AVX --enable-comms=mpi-auto --enable-sp=no --enable-fermion-reps=no --enable-gparity=no --enable-zmobius=no --enable-Nc=2
@ctpeterson ctpeterson added the bug label Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant