Skip to content

Conversation

@simshi
Copy link
Contributor

@simshi simshi commented Sep 16, 2025

issue

I met gpu_compile_options initialization order issue over gcc 8.4.0. Maybe related with LTO bug?

solution

make it deterministic, no "crossing fingers" required. 😸

@meta-cla meta-cla bot added the CLA Signed label Sep 16, 2025
@facebook-github-bot
Copy link
Contributor

@pankajsingh88 has imported this pull request. If you are a Meta employee, you can view this in D82647834.

@mnorris11
Copy link

Hi @simshi , thanks for the contribution; what was the error and how did you repro?

@simshi
Copy link
Contributor Author

simshi commented Oct 9, 2025

Hi @simshi , thanks for the contribution; what was the error and how did you repro?

The result is get_compile_options() returns without "GPU".
Should be caused by: InitGpuCompileOptions_instance is created/initialized before gpu_compile_options, cause gpu_compile_options reset to empty.

No guarantee to reproduce, my dev environment is ubuntu18 with gcc 8.4.0

@meta-codesync
Copy link
Contributor

meta-codesync bot commented Oct 15, 2025

@mnorris11 has imported this pull request. If you are a Meta employee, you can view this in D82647834.

@meta-codesync
Copy link
Contributor

meta-codesync bot commented Oct 16, 2025

@pankajsingh88 merged this pull request in 97dc014.

AlSchlo pushed a commit to AlSchlo/faiss-panorama that referenced this pull request Oct 20, 2025
Summary:
# issue
I met gpu_compile_options initialization order issue over gcc 8.4.0. Maybe related with LTO bug?

# solution
make it deterministic, no "crossing fingers" required. 😸

Pull Request resolved: facebookresearch#4581

Reviewed By: subhadeepkaran

Differential Revision: D82647834

Pulled By: pankajsingh88

fbshipit-source-id: ead9515dc6e84987e6c8f5471318a34cc5b81086
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants