Skip to content
Merged
Changes from all 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
8 changes: 6 additions & 2 deletions cpp/src/mip/feasibility_jump/feasibility_jump_kernels.cu
Original file line number Diff line number Diff line change
Expand Up @@ -1153,7 +1153,9 @@ __global__ void select_variable_kernel(typename fj_t<i_t, f_t>::climber_data_t::
raft::random::PCGenerator rng(
fj.settings->seed, *fj.iterations * fj.settings->parameters.max_sampled_moves, 0);

__shared__ typename fj_t<i_t, f_t>::move_score_t shmem[2 * raft::WarpSize];
using move_score_t = typename fj_t<i_t, f_t>::move_score_t;
__shared__ alignas(move_score_t) char shmem_storage[2 * raft::WarpSize * sizeof(move_score_t)];
auto* const shmem = (move_score_t*)shmem_storage;

auto th_best_score = fj_t<i_t, f_t>::move_score_t::invalid();
i_t th_selected_var = std::numeric_limits<i_t>::max();
Expand Down Expand Up @@ -1300,7 +1302,9 @@ DI thrust::tuple<i_t, f_t, typename fj_t<i_t, f_t>::move_score_t> gridwide_reduc
cg::this_grid().sync();

if (blockIdx.x == 0) {
__shared__ typename fj_t<i_t, f_t>::move_score_t shmem[2 * raft::WarpSize];
using move_score_t = typename fj_t<i_t, f_t>::move_score_t;
__shared__ alignas(move_score_t) char shmem_storage[2 * raft::WarpSize * sizeof(move_score_t)];
auto* const shmem = (move_score_t*)shmem_storage;

auto th_best_score = fj_t<i_t, f_t>::move_score_t::invalid();
i_t th_best_block = 0;
Expand Down