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

Add patch to Tensorflow backend for GCC 14 compatibility #738

Merged
merged 3 commits into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions doc/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,29 @@ Jump to:

## SmartSim

### Develop

To be released at some point in the future

Description

- Implement workaround for Tensorflow that allows RedisAI to build with GCC-14
- Add instructions for installing SmartSim on PML's Scylla

Detailed Notes

- In libtensorflow, the input argument to TF_SessionRun seems to be mistyped to
TF_Output instead of TF_Input. These two types differ only in name. GCC-14
catches this and throws an error, even though earlier versions allow this. To
solve this problem, patches are applied to the Tensorflow backend in RedisAI.
Future versions of Tensorflow may fix this problem, but for now this seems to be
the best workaround.
([SmartSim-PR738](https://github.com/CrayLabs/SmartSim/pull/738))
- PML's Scylla is still under development. The usual SmartSim
build instructions do not apply because the GPU dependencies
have yet to be installed at a system-wide level. Scylla has
its own entry in the documentation.
([SmartSim-PR733](https://github.com/CrayLabs/SmartSim/pull/733))


### 0.8.0

Released on 27 September, 2024
Expand Down
12 changes: 12 additions & 0 deletions smartsim/_core/_install/configs/mlpackages/DarwinARM64CPU.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,18 @@
"source_file": "src/backends/libtorch_c/CMakeLists.txt",
"regex": "set_property\\(TARGET\\storch_c\\sPROPERTY\\sCXX_STANDARD\\s(98|11|14)\\)",
"replacement": "set_property(TARGET torch_c PROPERTY CXX_STANDARD 17)"
},
{
"description": "Fix the type in a Tensorflow function signature",
"source_file": "src/backends/tensorflow.c",
"regex": "TF_Input inputs",
"replacement": "TF_Output inputs"
},
{
"description": "Fix the type in a Tensorflow function signature",
"source_file": "src/backends/tensorflow.c",
"regex": "TF_Input port",
"replacement": "TF_Output port"
}
]
},
Expand Down
12 changes: 12 additions & 0 deletions smartsim/_core/_install/configs/mlpackages/DarwinX64CPU.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,18 @@
"source_file": "src/backends/libtorch_c/CMakeLists.txt",
"regex": "set_property\\(TARGET\\storch_c\\sPROPERTY\\sCXX_STANDARD\\s(98|11|14)\\)",
"replacement": "set_property(TARGET torch_c PROPERTY CXX_STANDARD 17)"
},
{
"description": "Fix the type in a Tensorflow function signature",
"source_file": "src/backends/tensorflow.c",
"regex": "TF_Input inputs",
"replacement": "TF_Output inputs"
},
{
"description": "Fix the type in a Tensorflow function signature",
"source_file": "src/backends/tensorflow.c",
"regex": "TF_Input port",
"replacement": "TF_Output port"
}
]
},
Expand Down
12 changes: 12 additions & 0 deletions smartsim/_core/_install/configs/mlpackages/LinuxX64CPU.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,18 @@
"source_file": "src/backends/libtorch_c/CMakeLists.txt",
"regex": "set_property\\(TARGET\\storch_c\\sPROPERTY\\sCXX_STANDARD\\s(98|11|14)\\)",
"replacement": "set_property(TARGET torch_c PROPERTY CXX_STANDARD 17)"
},
{
"description": "Fix the type in a Tensorflow function signature",
"source_file": "src/backends/tensorflow.c",
"regex": "TF_Input inputs",
"replacement": "TF_Output inputs"
},
{
"description": "Fix the type in a Tensorflow function signature",
"source_file": "src/backends/tensorflow.c",
"regex": "TF_Input port",
"replacement": "TF_Output port"
}
]
},
Expand Down
12 changes: 12 additions & 0 deletions smartsim/_core/_install/configs/mlpackages/LinuxX64CUDA11.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,18 @@
"source_file": "src/backends/libtorch_c/CMakeLists.txt",
"regex": "set_property\\(TARGET\\storch_c\\sPROPERTY\\sCXX_STANDARD\\s(98|11|14)\\)",
"replacement": "set_property(TARGET torch_c PROPERTY CXX_STANDARD 17)"
},
{
"description": "Fix the type in a Tensorflow function signature",
"source_file": "src/backends/tensorflow.c",
"regex": "TF_Input inputs",
"replacement": "TF_Output inputs"
},
{
"description": "Fix the type in a Tensorflow function signature",
"source_file": "src/backends/tensorflow.c",
"regex": "TF_Input port",
"replacement": "TF_Output port"
}
]
},
Expand Down
12 changes: 12 additions & 0 deletions smartsim/_core/_install/configs/mlpackages/LinuxX64CUDA12.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,18 @@
"source_file": "src/backends/libtorch_c/CMakeLists.txt",
"regex": "set_property\\(TARGET\\storch_c\\sPROPERTY\\sCXX_STANDARD\\s(98|11|14)\\)",
"replacement": "set_property(TARGET torch_c PROPERTY CXX_STANDARD 17)"
},
{
"description": "Fix the type in a Tensorflow function signature",
"source_file": "src/backends/tensorflow.c",
"regex": "TF_Input inputs",
"replacement": "TF_Output inputs"
},
{
"description": "Fix the type in a Tensorflow function signature",
"source_file": "src/backends/tensorflow.c",
"regex": "TF_Input port",
"replacement": "TF_Output port"
}
]
},
Expand Down
12 changes: 12 additions & 0 deletions smartsim/_core/_install/configs/mlpackages/LinuxX64ROCM6.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,18 @@
"source_file": "../package/libtorch/share/cmake/Caffe2/Caffe2Targets.cmake",
"regex": "/opt/rocm",
"replacement": "$ENV{ROCM_PATH}"
},
{
"description": "Fix the type in a Tensorflow function signature",
"source_file": "src/backends/tensorflow.c",
"regex": "TF_Input inputs",
"replacement": "TF_Output inputs"
},
{
"description": "Fix the type in a Tensorflow function signature",
"source_file": "src/backends/tensorflow.c",
"regex": "TF_Input port",
"replacement": "TF_Output port"
}
]
}
Expand Down
Loading