Skip to content

Commit

Permalink
Fix several build issues in CI when using Clang (facebookincubator#10800
Browse files Browse the repository at this point in the history
)

Summary:
A number of issues came up when building the CI pipeline with Clang.

1. When CUDA nvcc uses Clang it complains that totalBytes is set but unused. �The intent seems to have been that the parameter is an in- and output parameter.
2. If benchmarks are not turned on then the CUDA build fails as dependencies are not available.
3. HDFS virtual function definition not explicitly overridden causing an error �(error: 'rename' overrides a member function but is not marked 'override’).

Pull Request resolved: facebookincubator#10800

Reviewed By: DanielHunte

Differential Revision: D61862435

Pulled By: kgpai

fbshipit-source-id: 3aef27e8ed1c4dd8fe78221c5dd859656fc65e69
  • Loading branch information
czentgr authored and Joe-Abraham committed Sep 3, 2024
1 parent 63fd5f4 commit de6baab
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 44 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class HdfsFileSystem : public FileSystem {
virtual void rename(
std::string_view path,
std::string_view newPath,
bool overWrite = false) {
bool overWrite = false) override {
VELOX_UNSUPPORTED("rename for HDFs not implemented");
}

Expand Down
2 changes: 1 addition & 1 deletion velox/experimental/wave/exec/Vectors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ void transferVector(
std::vector<WaveVectorPtr>& waveVectors,
std::vector<Operand>& operands,
GpuArena& arena,
int64_t totalBytes) {
int64_t& totalBytes) {
if (waveVectors.size() <= index) {
waveVectors.resize(index + 1);
}
Expand Down
86 changes: 44 additions & 42 deletions velox/experimental/wave/exec/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,46 +59,48 @@ target_link_libraries(

add_test(velox_wave_exec_test velox_wave_exec_test)

add_executable(velox_wave_benchmark WaveBenchmark.cpp)
if(${VELOX_ENABLE_BENCHMARKS})
add_executable(velox_wave_benchmark WaveBenchmark.cpp)

target_link_libraries(
velox_wave_benchmark
velox_query_benchmark
velox_wave_exec
velox_wave_mock_reader
velox_aggregates
velox_dwio_common
velox_dwio_common_exception
velox_dwio_common_test_utils
velox_dwio_parquet_reader
velox_dwio_parquet_writer
velox_exec
velox_exec_test_lib
velox_functions_json
velox_functions_lib
velox_functions_prestosql
velox_functions_test_lib
velox_hive_connector
velox_memory
velox_serialization
velox_test_util
velox_type
velox_vector
velox_vector_fuzzer
Boost::atomic
Boost::context
Boost::date_time
Boost::filesystem
Boost::program_options
Boost::regex
Boost::thread
Boost::system
gtest
gtest_main
gmock
${FOLLY_BENCHMARK}
Folly::folly
gflags::gflags
glog::glog
fmt::fmt
${FILESYSTEM})
target_link_libraries(
velox_wave_benchmark
velox_query_benchmark
velox_wave_exec
velox_wave_mock_reader
velox_aggregates
velox_dwio_common
velox_dwio_common_exception
velox_dwio_common_test_utils
velox_dwio_parquet_reader
velox_dwio_parquet_writer
velox_exec
velox_exec_test_lib
velox_functions_json
velox_functions_lib
velox_functions_prestosql
velox_functions_test_lib
velox_hive_connector
velox_memory
velox_serialization
velox_test_util
velox_type
velox_vector
velox_vector_fuzzer
Boost::atomic
Boost::context
Boost::date_time
Boost::filesystem
Boost::program_options
Boost::regex
Boost::thread
Boost::system
gtest
gtest_main
gmock
${FOLLY_BENCHMARK}
Folly::folly
gflags::gflags
glog::glog
fmt::fmt
${FILESYSTEM})
endif()

0 comments on commit de6baab

Please sign in to comment.