Skip to content

improve workaround for JsonCpp dependency in TensorFlow easyblock#2172

Merged
boegel merged 1 commit intoeasybuilders:developfrom
Flamefire:tf_improve_json_workaround
Sep 11, 2020
Merged

improve workaround for JsonCpp dependency in TensorFlow easyblock#2172
boegel merged 1 commit intoeasybuilders:developfrom
Flamefire:tf_improve_json_workaround

Conversation

@Flamefire
Copy link
Copy Markdown
Contributor

The TensorFlow sources include the json sources as "include/json/..." which is unusual
As a workaround the root folder to JsonCpp is added to CPATH.
However for fixed versions this is not required and the include folder should be added instead.
A patch for 2.3 exists and will be part of all future releases. 2.3+ ECs should hence rather use the patch instead.
To avoid having to change existing ECs not using the patch but allow them to use the patch both folders are added.

The TensorFlow sources include the json sources as "include/json/..." which is unusual
As a workaround the root folder to JsonCpp is added to CPATH.
However for fixed versions this is not required and the include folder should be added instead.
A patch for 2.3 exists and will be part of all future releases. 2.3+ ECs should hence rather use the patch instead.
To avoid having to change existing ECs not using the patch but allow them to use the patch both folders are added.
@boegel boegel changed the title [TensorFlow] Improve workaround for system JsonCpp improve workaround for JsonCpp dependency in TensorFlow easyblock Sep 11, 2020
@boegel boegel added this to the next release (4.3.0) milestone Sep 11, 2020
Copy link
Copy Markdown
Member

@boegel boegel left a comment

Choose a reason for hiding this comment

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

lgtm, tested with a variety of TensorFlow easyconfigs...

@boegel boegel merged commit 150b6f3 into easybuilders:develop Sep 11, 2020
boegel added a commit to migueldiascosta/easybuild-easyblocks that referenced this pull request Sep 11, 2020
@Flamefire Flamefire deleted the tf_improve_json_workaround branch September 14, 2020 07:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants