nvcc fatal : Unknown option '-mavx'
Open
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 1.6k
- Forks
- 787
- PR merge metrics
- No merged PRs in 30d
Description
I am configuring the project on wsl2. when I load the CMakeList.txt in the fbgemm_gpu folder, It gives the following error.
Cannot get compiler information:
Compiler exited with error code 1: \usr\local\cuda\bin\nvcc -Dfbgemm_gpu_py_EXPORTS --generate-code=arch=compute_75,code=[compute_75,sm_75] -Xcompiler=-fPIC -std=c++17 -mavx -mf16c -mfma -mavx2 -fopenmp --dryrun /mnt/c/Users/Lenovo/AppData/Local/Temp/compiler-file16156068507273487186.cu
nvcc fatal : Unknown option '-mavx'
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the CMakeLists.txt in the fbgemm_gpu folder and reproduce the configuration under WSL2 using the shown nvcc command. Determine where the -mavx and related compiler flags are added; done means the compiler information check completes without nvcc rejecting the options.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, cpp
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100