Skip to content

Commit 085e193

Browse files
Merge pull request #48 from Becheler/fix/pbgl-rmat-std-shared-ptr
fix: fix smart ptr and broken mpich noble package
2 parents f91d58b + e88c3cd commit 085e193

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

‎.github/workflows/ci.yml‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,16 @@ jobs:
2727
run: echo ${{ matrix.compiler }} | awk '/^g/ { print "TOOLSET=gcc" } /^clang/ { print "TOOLSET=clang" }' >> $GITHUB_ENV
2828
- name: Install packages
2929
run: sudo apt-get update; sudo apt-get install -y g++-13 g++-14 clang-19 ${{matrix.mpi}}
30+
- name: Fix noble mpich (LP 2072338)
31+
if: matrix.mpi == 'mpich'
32+
run: |
33+
. /etc/os-release
34+
if [ "$VERSION_ID" = "24.04" ]; then
35+
wget -q https://launchpad.net/ubuntu/+source/mpich/4.2.0-5.1/+build/28285882/+files/libmpich12_4.2.0-5.1_amd64.deb https://launchpad.net/ubuntu/+source/mpich/4.2.0-5.1/+build/28285882/+files/libmpich-dev_4.2.0-5.1_amd64.deb https://launchpad.net/ubuntu/+source/mpich/4.2.0-5.1/+build/28285882/+files/mpich_4.2.0-5.1_amd64.deb
36+
sudo dpkg -i libmpich12_4.2.0-5.1_amd64.deb libmpich-dev_4.2.0-5.1_amd64.deb mpich_4.2.0-5.1_amd64.deb
37+
else
38+
echo "Ubuntu $VERSION_ID is not 24.04; skipping the noble-specific mpich workaround (LP 2072338)."
39+
fi
3040
- name: Checkout main boost
3141
run: git clone -b develop --depth 1 https://github.com/boostorg/boost.git ../boost-root
3242
- name: Update tools/boostdep

‎include/boost/graph/distributed/rmat_graph_generator.hpp‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include <boost/assert.hpp>
1717
#include <boost/graph/parallel/algorithm.hpp>
1818
#include <boost/graph/parallel/process_group.hpp>
19+
#include <memory>
1920
#include <math.h>
2021

2122
namespace boost {
@@ -151,7 +152,7 @@ namespace boost {
151152
private:
152153

153154
// Parameters
154-
shared_ptr<uniform_01<RandomGenerator> > gen;
155+
std::shared_ptr<uniform_01<RandomGenerator> > gen;
155156

156157
// Internal data structures
157158
std::vector<value_type> values;

0 commit comments

Comments
 (0)