Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

warning in cub/device/dispatch/dispatch_spmv_orig.cuh #161

Closed
seunghwak opened this issue May 6, 2019 · 0 comments · Fixed by #163
Closed

warning in cub/device/dispatch/dispatch_spmv_orig.cuh #161

seunghwak opened this issue May 6, 2019 · 0 comments · Fixed by #163
Labels
type: bug: functional Does not work as intended.
Milestone

Comments

@seunghwak
Copy link
Contributor

Related to: https://github.com/NVlabs/cub/issues/55

in cub/device/dispatch/dispatch_spmv_orig.cuh line 666 - 674

            dim3 spmv_grid_size(
                CUB_MIN(num_merge_tiles, max_dim_x),
                (num_merge_tiles + max_dim_x - 1) / max_dim_x,
                1);

            dim3 segment_fixup_grid_size(
                CUB_MIN(num_segment_fixup_tiles, max_dim_x),
                (num_segment_fixup_tiles + max_dim_x - 1) / max_dim_x,
1);

This generates the following warning as num_merge_tiles and num_segment_fixup_tiles are unsigned int and max_dim_x is int. This may be harmless but better be fixed...

/home/seunghwak/RAPIDS/cugraph/cpp/build/gunrock/externals/cub/cub/device/dispatch/dispatch_spmv_orig.cuh:666:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             dim3 spmv_grid_size(
                     ~~~~~~~~~~~^                 
/home/seunghwak/RAPIDS/cugraph/cpp/build/gunrock/externals/cub/cub/device/dispatch/dispatch_spmv_orig.cuh:671:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             dim3 segment_fixup_grid_size(
                              ~~~~~~~~~~~^ 
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug: functional Does not work as intended.
Projects
None yet
2 participants