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

error You need C++17 to compile PyTorch #779

Open
ranggihwang opened this issue Nov 7, 2023 · 0 comments
Open

error You need C++17 to compile PyTorch #779

ranggihwang opened this issue Nov 7, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@ranggihwang
Copy link

Branch/Tag/Commit

main

Docker Image Version

nvcr.io/nvidia/tensorflow:22.09-tf1-py3

GPU name

A100

CUDA Driver

510.47.03

Reproduced Steps

There are two ways to reproduce the error.
Both case shows the same error message.

## FIRST WAY ##
docker run -ti --shm-size 5g --rm nvcr.io/nvidia/tensorflow:22.09-tf1-py3 bash
git clone https://github.com/NVIDIA/FasterTransformer.git
mkdir -p FasterTransformer/build
cd FasterTransformer/build
git submodule init && git submodule update
pip install torch
cmake -DSM=80 -DCMAKE_BUILD_TYPE=Release -DBUILD_PYT=ON -DBUILD_MULTI_GPU=ON ..
make -j12

## SECOND WAY ##
docker run -it -d --name=test --privileged --gpus all --cap-add=ALL --shm-size=1g --ulimit memlock=-1 --ulimit stack=67108864 --net=host --ipc=host -v ${HOME}:${HOME} -v /dev:/dev -v /lib/modules:/lib/modules  -v /raid:/raid nvcr.io/nvidia/tensorflow:22.09-tf1-py3 bash
git clone https://github.com/NVIDIA/FasterTransformer.git
mkdir -p FasterTransformer/build
cd FasterTransformer/build
git submodule init && git submodule update
cmake -DSM=80 -DCMAKE_BUILD_TYPE=Release -DBUILD_PYT=ON -DBUILD_MULTI_GPU=ON ..
make -j12

Then you can get the below error.

error C++17 or later compatible compiler is required to use PyTorch.
@ranggihwang ranggihwang added the bug Something isn't working label Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant