Skip to content

Commit be87fde

Browse files
author
Vincent Moens
committed
init
1 parent 60e7179 commit be87fde

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

.github/scripts/linux-post-script.sh renamed to .github/scripts/linux-pre-script.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22

33
yum update gcc
44
yum update libstdc++
5+
export CXXFLAGS="-D_GLIBCXX_USE_CXX11_ABI=1"

.github/workflows/build-wheels-linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
include:
3434
- repository: pytorch/tensordict
3535
smoke-test-script: test/smoke_test.py
36-
post-script: .github/scripts/linux-post-script.sh
36+
pre-script: .github/scripts/linux-pre-script.sh
3737
package-name: tensordict
3838
name: pytorch/tensordict
3939
uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@main

setup.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,17 @@ def run(self):
101101

102102
def get_extensions():
103103
extension = CppExtension
104+
import torch
105+
106+
# torch._C._GLIBCXX_USE_CXX11_ABI = True
104107

105108
extra_link_args = []
106109
extra_compile_args = {
107110
"cxx": [
108111
"-O3",
109112
"-std=c++17",
110113
"-fdiagnostics-color=always",
114+
"-D_GLIBCXX_USE_CXX11_ABI=0",
111115
]
112116
}
113117
debug_mode = os.getenv("DEBUG", "0") == "1"

0 commit comments

Comments
 (0)