Skip to content

Conversation

@rcurtin
Copy link
Member

@rcurtin rcurtin commented May 15, 2025

While compiling Python bindings on a system that had HDF5 enabled, I encountered a compilation failure:

http://ci.mlpack.org/job/mlpack-wheels/111/pipeline-console/?selected-node=67

Uh, it's really hard to find the failure in there, but basically in SaveMatrix(), when ARMA_USE_HDF5 is set, then the filename parameter doesn't exist. So I threaded the filename parameter through SaveDense() and SaveSparse() to fix the issue.

The reason that filename is needed is that Armadillo doesn't support saving HDF5 to streams---it only saves to filenames.

CC: @shrit because this is related to #3927.

@rcurtin
Copy link
Member Author

rcurtin commented May 15, 2025

This will require a bugfix release once it's merged.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Second approval provided automatically after 24 hours. 👍

@shrit shrit merged commit 7b0596b into mlpack:master May 18, 2025
14 of 15 checks passed
@rcurtin rcurtin mentioned this pull request May 22, 2025
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