Skip to content

Commit

Permalink
Make variable const
Browse files Browse the repository at this point in the history
  • Loading branch information
ttnghia committed Mar 22, 2023
1 parent 8dfa60a commit 59d1c8b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions cpp/cmake/Modules/ConfigureCUDA.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# =============================================================================

if(CMAKE_COMPILER_IS_GNUCXX)
list(APPEND CUDF_CXX_FLAGS -Wall -Werror -Wno-unknown-pragmas -Wno-error=deprecated-declarations)
list(APPEND CUDF_CXX_FLAGS -Wall -Werror -Wno-unknown-pragmas -Wno-error=deprecated-declarations -fsanitize=address)
endif()

list(APPEND CUDF_CUDA_FLAGS --expt-extended-lambda --expt-relaxed-constexpr)
Expand All @@ -24,7 +24,7 @@ if(CUDA_WARNINGS_AS_ERRORS)
else()
list(APPEND CUDF_CUDA_FLAGS -Werror=cross-execution-space-call)
endif()
list(APPEND CUDF_CUDA_FLAGS -Xcompiler=-Wall,-Werror,-Wno-error=deprecated-declarations)
list(APPEND CUDF_CUDA_FLAGS -Xcompiler=-Wall,-Werror,-Wno-error=deprecated-declarations,-fsanitize=address)

if(DISABLE_DEPRECATION_WARNINGS)
list(APPEND CUDF_CXX_FLAGS -Wno-deprecated-declarations)
Expand All @@ -41,7 +41,7 @@ if(CUDA_ENABLE_LINEINFO)
endif()

# Debug options
if(CMAKE_BUILD_TYPE MATCHES Debug)
#if(CMAKE_BUILD_TYPE MATCHES Debug)
message(VERBOSE "CUDF: Building with debugging flags")
list(APPEND CUDF_CUDA_FLAGS -Xcompiler=-rdynamic)
endif()
#endif()
2 changes: 1 addition & 1 deletion cpp/src/io/orc/writer_impl.cu
Original file line number Diff line number Diff line change
Expand Up @@ -2227,7 +2227,7 @@ convert_table_to_orc_data(table_view const& input,
auto orc_table = make_orc_table_view(input, *input_tview, table_meta, stream);

// This is unused but it holds memory buffers for later access thus needs to be kept alive.
[[maybe_unused]] auto pd_masks = init_pushdown_null_masks(orc_table, stream);
[[maybe_unused]] auto const pd_masks = init_pushdown_null_masks(orc_table, stream);

auto rowgroup_bounds = calculate_rowgroup_bounds(orc_table, row_index_stride, stream);

Expand Down

0 comments on commit 59d1c8b

Please sign in to comment.