Skip to content

Commit

Permalink
[build] Fix -Werror errors for TI_WITH_CUDA_TOOLKIT=ON (#5133)
Browse files Browse the repository at this point in the history
  • Loading branch information
feisuzhu committed Jun 23, 2022
1 parent 5a066fb commit e190efb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,4 @@ _build
imgui.ini
/venv/
/_skbuild/
.cache
3 changes: 1 addition & 2 deletions taichi/backends/cuda/cupti_toolkit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ ScopeExit<T> MoveScopeExit(T t) {

#define SCOPE_EXIT(func) \
const auto NV_ANONYMOUS_VARIABLE_INDIRECT(EXIT, __LINE__) = \
MoveScopeExit([=]() { func; })
MoveScopeExit([=]() { (void)(func); })

#define CUPTI_API_CALL(api_func_call) \
do { \
Expand Down Expand Up @@ -1045,7 +1045,6 @@ bool CuptiToolkit::update_record(
range_name += description_ptrs[description_index];
}

const bool isolated = true;
std::vector<double> gpu_values;
gpu_values.resize(cupti_config_.metric_list.size());

Expand Down

0 comments on commit e190efb

Please sign in to comment.