Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[build] Fix -Werror errors for TI_WITH_CUDA_TOOLKIT=ON (#5133) #5216

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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); })
qiao-bo marked this conversation as resolved.
Show resolved Hide resolved

#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