` frontiers_len += h_nitems; depth_index.push_back(frontiers_len); bc_forward<<<nblocks, nthreads>>>(m, d_row_offsets, d_column_indices, d_path_counts, d_depths, depth, d_changed, d_visited, d_expanded, d_nitems, d_frontiers, frontiers_len); CudaTest("solving bc_forward failed"); bc_update <<<nblocks, nthreads>>> (m, d_depths, d_visited); CudaTest("solving bc_update failed"); ` Removing these function calls work for me.