Skip to content

paraview: patch catalyst etc. to build with oneapi#33562

Merged
alalazo merged 1 commit intospack:developfrom
hppritcha:paraview_catalyst_oneapi_fix
Dec 22, 2022
Merged

paraview: patch catalyst etc. to build with oneapi#33562
alalazo merged 1 commit intospack:developfrom
hppritcha:paraview_catalyst_oneapi_fix

Conversation

@hppritcha
Copy link
Copy Markdown
Contributor

without this patch, build of paraview has a meltdown when reaching 3rd party catalyst and other packages with these types of errors:

335 /tmp/foo/spack-stage/spack-stage-paraview-5.10.1-gscoqxhhakjyyfirdefuhmi2bzw4scho/spack-src/VTK/ThirdParty/fmt/vtkfmt/vtkfmt/format.h:1732:11: error: cannot capture a bi
t-field by reference
336 if (sign) *it++ = static_cast(data::signs[sign]);
337 ^

Signed-off-by: Howard Pritchard [email protected]

@hppritcha hppritcha force-pushed the paraview_catalyst_oneapi_fix branch 2 times, most recently from 2e071c0 to 5c698ce Compare October 27, 2022 15:30
Copy link
Copy Markdown
Member

@vicentebolea vicentebolea left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution, this is indeed helpful.

Find the requested changes and please file the same changes upstream at https://github.com/fmtlib/fmt

isinf ? (fspecs.upper ? "INF" : "inf") : (fspecs.upper ? "NAN" : "nan");
constexpr size_t str_size = 3;
- auto sign = fspecs.sign;
+ auto sign = (uint)fspecs.sign;
Copy link
Copy Markdown
Member

@vicentebolea vicentebolea Oct 27, 2022

Choose a reason for hiding this comment

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

Please change (uint) -> static_cast<unsigned int>() for wider portability

int significand_size = get_significand_size(fp);
static const Char zero = static_cast<Char>('0');
- auto sign = fspecs.sign;
+ auto sign = (uint)fspecs.sign;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ditto

isinf ? (fspecs.upper ? "INF" : "inf") : (fspecs.upper ? "NAN" : "nan");
constexpr size_t str_size = 3;
- auto sign = fspecs.sign;
+ auto sign = (uint)fspecs.sign;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ditto

int significand_size = get_significand_size(fp);
static const Char zero = static_cast<Char>('0');
- auto sign = fspecs.sign;
+ auto sign = (uint)fspecs.sign;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ditto

@hppritcha hppritcha force-pushed the paraview_catalyst_oneapi_fix branch from 5c698ce to 57aa83f Compare October 27, 2022 20:43
@hppritcha
Copy link
Copy Markdown
Contributor Author

the patch doesn't work on head of master on https://github.com/fmtlib/fmt namely doesn't compile.

@vicentebolea
Copy link
Copy Markdown
Member

I see, the current master of fmt has changed so that this does not apply anymore. @hppritcha could you share the spec invocation where you observed the error so that I can replicate this. Thanks!

@hppritcha
Copy link
Copy Markdown
Contributor Author

==> Concretized paraview%[email protected] ^perl%gcc ^[email protected] ^rust%gcc
[+] kv37cce [email protected]%[email protected] cflags="-fPIC -Wl,--allow-multiple-definition -Qunused-arguments -Wl,-undefined,dynamic_lookup" cxxflags="-fPIC -Wl,--allow-multiple-definition -Wl,-undefined,dynamic_lookup -Qunused-arguments -std=c++14 -stdlib=libstdc++ -L/projects/opt/centos8/x86_64/gcc/11.2.0/lib64 -Wl,-rpath,/projects/opt/centos8/x86_64/gcc/11.2.0/lib64" adios2advanced_debugcuda+development_filesexampleseyedomelightingfortran+hdf5ipo+kits+mpi+opengl2osmesapagosapython+python3~qt+shared build_edition=catalyst_rendering build_type=RelWithDebInfo patches=730539b,acb3805 use_vtkm=off arch=linux-rhel8-skylake

@vicentebolea
Copy link
Copy Markdown
Member

@hppritcha I cannot replicate the error but I used oneapi2022 (not 23) and perhaps a different GCC version. One thing that I can state is that it does not break the build and it only applies to oneapi builds for 5.10.0-1.

As the author noticed, this is not a problem in ParaView > 5.10.1 since Catalyst is not included in PAraView Source Code Dist anymore.

vicentebolea
vicentebolea previously approved these changes Nov 24, 2022
@vicentebolea
Copy link
Copy Markdown
Member

@hppritcha it has been a while please rebase to kick off the CI.

bernhardkaindl
bernhardkaindl previously approved these changes Nov 25, 2022
Copy link
Copy Markdown
Contributor

@bernhardkaindl bernhardkaindl left a comment

Choose a reason for hiding this comment

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

@vicentebolea Because you approved and requested a re-run of the pipeline by a rebase, I've merged the changes from develop to do this.

(spack maintainers have a button for this from github which works fine),
should @hppritcha still want to make a rebase, but github will do I when it squashes and rebases automatically for the merge into develop, so it should be taken care of by github after CI has passed again.

I will also enable auto-rebase & merge to develop since as far as I can see you approved this PR.

@hppritcha @vicentebolea In case the gitlab-ci CI action fails for some unrelated spurious reason, please ping @bernhardkaindl with a comment (or in case I miss your ping, other reviewers/maintainers)

@bernhardkaindl bernhardkaindl enabled auto-merge (squash) November 25, 2022 23:10
@vicentebolea
Copy link
Copy Markdown
Member

@hppritcha please rebase again to re-trigger the CI.

without this patch, build of paraview has a meltdown when reaching 3rd party catalyst and other packages
with these types of errors:

   335    /tmp/foo/spack-stage/spack-stage-paraview-5.10.1-gscoqxhhakjyyfirdefuhmi2bzw4scho/spack-src/VTK/ThirdParty/fmt/vtkfmt/vtkfmt/format.h:1732:11: error: cannot capture a bi
            t-field by reference
   336          if (sign) *it++ = static_cast<Char>(data::signs[sign]);
   337              ^

Signed-off-by: Howard Pritchard <[email protected]>
auto-merge was automatically disabled December 21, 2022 18:30

Head branch was pushed to by a user without write access

@hppritcha hppritcha force-pushed the paraview_catalyst_oneapi_fix branch from e85f44a to 1502572 Compare December 21, 2022 18:30
@hppritcha
Copy link
Copy Markdown
Contributor Author

@vicentebolea rebased

@alalazo alalazo enabled auto-merge (squash) December 21, 2022 18:59
@alalazo alalazo merged commit c74bbc6 into spack:develop Dec 22, 2022
stephenmsachs pushed a commit to stephenmsachs/spack that referenced this pull request Jan 3, 2023
without this patch, build of paraview has a meltdown when reaching 3rd party catalyst and other packages
with these types of errors:

   335    /tmp/foo/spack-stage/spack-stage-paraview-5.10.1-gscoqxhhakjyyfirdefuhmi2bzw4scho/spack-src/VTK/ThirdParty/fmt/vtkfmt/vtkfmt/format.h:1732:11: error: cannot capture a bi
            t-field by reference
   336          if (sign) *it++ = static_cast<Char>(data::signs[sign]);
   337              ^

Signed-off-by: Howard Pritchard <[email protected]>

Signed-off-by: Howard Pritchard <[email protected]>
RikkiButler20 pushed a commit to RikkiButler20/spack that referenced this pull request Jan 24, 2023
without this patch, build of paraview has a meltdown when reaching 3rd party catalyst and other packages
with these types of errors:

   335    /tmp/foo/spack-stage/spack-stage-paraview-5.10.1-gscoqxhhakjyyfirdefuhmi2bzw4scho/spack-src/VTK/ThirdParty/fmt/vtkfmt/vtkfmt/format.h:1732:11: error: cannot capture a bi
            t-field by reference
   336          if (sign) *it++ = static_cast<Char>(data::signs[sign]);
   337              ^

Signed-off-by: Howard Pritchard <[email protected]>

Signed-off-by: Howard Pritchard <[email protected]>
amd-toolchain-support pushed a commit to amd-toolchain-support/spack that referenced this pull request Feb 16, 2023
without this patch, build of paraview has a meltdown when reaching 3rd party catalyst and other packages
with these types of errors:

   335    /tmp/foo/spack-stage/spack-stage-paraview-5.10.1-gscoqxhhakjyyfirdefuhmi2bzw4scho/spack-src/VTK/ThirdParty/fmt/vtkfmt/vtkfmt/format.h:1732:11: error: cannot capture a bi
            t-field by reference
   336          if (sign) *it++ = static_cast<Char>(data::signs[sign]);
   337              ^

Signed-off-by: Howard Pritchard <[email protected]>

Signed-off-by: Howard Pritchard <[email protected]>
jmcarcell pushed a commit to key4hep/spack that referenced this pull request Apr 13, 2023
without this patch, build of paraview has a meltdown when reaching 3rd party catalyst and other packages
with these types of errors:

   335    /tmp/foo/spack-stage/spack-stage-paraview-5.10.1-gscoqxhhakjyyfirdefuhmi2bzw4scho/spack-src/VTK/ThirdParty/fmt/vtkfmt/vtkfmt/format.h:1732:11: error: cannot capture a bi
            t-field by reference
   336          if (sign) *it++ = static_cast<Char>(data::signs[sign]);
   337              ^

Signed-off-by: Howard Pritchard <[email protected]>

Signed-off-by: Howard Pritchard <[email protected]>
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.

5 participants