Skip to content

stop propagating gcc flags to nvcc #92

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

Merged
merged 1 commit into from
May 9, 2018
Merged

Conversation

achalshah20
Copy link
Contributor

@achalshah20 achalshah20 commented May 9, 2018

We need to stop propagating gcc flags to nvcc. I am using c++14 for both cuda and c++. Tensorflow passed std=c++11 thorough target_compile_options which broke my code. This pull request fixes this issue.

This change requires cmake > 3.3

Similar issue: CGAL/cgal#2775

stop propagating gcc flag to nvcc - static build
Copy link
Owner

@FloopCZ FloopCZ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks.

@FloopCZ FloopCZ changed the base branch from v1.8.0 to master May 9, 2018 08:51
@FloopCZ FloopCZ changed the base branch from master to v1.8.0 May 9, 2018 08:52
@FloopCZ FloopCZ merged commit bc17d9a into FloopCZ:v1.8.0 May 9, 2018
facebook-github-bot pushed a commit to pytorch/pytorch that referenced this pull request Aug 6, 2018
Summary:
When we directly use -std=c++11, it propagates to the downstream applications.

Problems:
1. Gcc flags propagating to nvcc.
2. nvcc flags propagating to nvcc. (Which throws an error like redeclaration of std flag)

This PR will fix these propagation issues!

Similar problem:
FloopCZ/tensorflow_cc#92
CGAL/cgal#2775

Requires: Cmake 3.12
Pull Request resolved: #10098

Differential Revision: D9187110

Pulled By: ezyang

fbshipit-source-id: 0e00e6aa3119c77a5b3ea56992ef3bbfecd71d80
zdevito pushed a commit to zdevito/ATen that referenced this pull request Aug 6, 2018
Summary:
When we directly use -std=c++11, it propagates to the downstream applications.

Problems:
1. Gcc flags propagating to nvcc.
2. nvcc flags propagating to nvcc. (Which throws an error like redeclaration of std flag)

This PR will fix these propagation issues!

Similar problem:
FloopCZ/tensorflow_cc#92
CGAL/cgal#2775

Requires: Cmake 3.12
Pull Request resolved: pytorch/pytorch#10098

Differential Revision: D9187110

Pulled By: ezyang

fbshipit-source-id: 0e00e6aa3119c77a5b3ea56992ef3bbfecd71d80
goodlux pushed a commit to goodlux/pytorch that referenced this pull request Aug 15, 2018
Summary:
When we directly use -std=c++11, it propagates to the downstream applications.

Problems:
1. Gcc flags propagating to nvcc.
2. nvcc flags propagating to nvcc. (Which throws an error like redeclaration of std flag)

This PR will fix these propagation issues!

Similar problem:
FloopCZ/tensorflow_cc#92
CGAL/cgal#2775

Requires: Cmake 3.12
Pull Request resolved: pytorch#10098

Differential Revision: D9187110

Pulled By: ezyang

fbshipit-source-id: 0e00e6aa3119c77a5b3ea56992ef3bbfecd71d80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants