Skip to content

Conversation

@zou3519
Copy link
Contributor

@zou3519 zou3519 commented Jul 31, 2018

It returns whether PyTorch was built with _GLIBCXX_USE_CXX11_ABI=1.

Fixes #8385

Test Plan:

  • Checked that when compiled with gcc 4.8.5,
    torch.compiled_with_cxx11_abi() returns False.
  • Checked that when compiled with gcc 5.4,
    torch.compiled_with_cxx11_abi() returns True

cc @soumith

It returns whether PyTorch was built with _GLIBCXX_USE_CXX11_ABI=1.

Test Plan:

- Checked that when compiled with gcc 4.8.5,
torch.compiled_with_cxx11_abi() returns False.
- Checked that when compiled with gcc 5.4,
torch.compiled_with_cxx11_abi() returns False.

ASSERT_TRUE(PyModule_AddObject(module, "has_mkl", at::hasMKL() ? Py_True : Py_False) == 0);

#ifdef _GLIBCXX_USE_CXX11_ABI

This comment was marked as off-topic.

This comment was marked as off-topic.

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

zou3519 has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@zou3519
Copy link
Contributor Author

zou3519 commented Aug 1, 2018

@pytorchbot retest this please

@zou3519 zou3519 deleted the pytorch-cxxabi branch August 2, 2018 02:33
goodlux pushed a commit to goodlux/pytorch that referenced this pull request Aug 15, 2018
Summary:
It returns whether PyTorch was built with _GLIBCXX_USE_CXX11_ABI=1.

Fixes pytorch#8385
Pull Request resolved: pytorch#10071

Differential Revision: D9088946

Pulled By: zou3519

fbshipit-source-id: b00fd92ee340ef34f60bdd6027ceaf46dd7442c0
@ezyang ezyang added the merged label Jun 26, 2019
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.

expose whether we used _GLIBCXX_USE_CXX11_ABI to runtime environment

4 participants