pytorch / pytorch/FBGEMM

nvcc fatal : Unknown option '-mavx'

Open
#2,135 5 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.