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

Update LD_PRELOAD #15

Merged
merged 4 commits into from
Dec 22, 2023
Merged
Show file tree
Hide file tree
Changes from 2 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
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: 2
updates:
- package-ecosystem: "pip"
directory: "/requirements"
directory: "/"
schedule:
interval: "weekly"
labels:
Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@ This document follows the conventions laid out in [Keep a CHANGELOG](https://kee

### Fixed

### Changed
- Update LD_PRELOAD [#15](https://github.com/ansys/pymechanical-env/pull/15)

### Dependencies

## [0.1.0](https://github.com/ansys/pymechanical-env/releases/tag/v0.1.0) - December 08, 2023

### Added

### Fixed
- Improve the ci/cd tests with the help of matrix style [#8](https://github.com/ansys-internal/pymechanical-env/pull/8)

### Changed
Expand Down
11 changes: 9 additions & 2 deletions src/ansys/mechanical/env/mechanical-env
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,15 @@ export MWUSER_DIRECTORY
MWDONT_XCLOSEDISPLAY=1
export MWDONT_XCLOSEDISPLAY

# Set dynamic library preload
LD_PRELOAD=libstdc++.so.6.0.28
# Set dynamic library preload from Ansys unified install
AnsLibStdCpp="$(find ${!awp_root}/tp/ -maxdepth 2 -type f -name libstdc++.so.6.\* 2>/dev/null | head -1)"
dipinknair marked this conversation as resolved.
Show resolved Hide resolved
if [ -n "$AnsLibStdCpp" ]; then
AnsLibVersion="$(echo $AnsLibStdCpp | sed -e 's/^.*so.6/6/')"
# Set LD_PRELOAD with the library name and version
LD_PRELOAD="libstdc++.so.$AnsLibVersion"
else
echo "Warning: Could not find libstdc++.so.6 version."
fi
export LD_PRELOAD

# Set dynamic library load path
Expand Down
Loading