Skip to content

Commit

Permalink
[pre-commit.ci] auto code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Dec 14, 2024
1 parent c1c302e commit ea40f9d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion benchmarks/scripts/cccl/bench/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ def run_benches(algnames, sub_space, seeker, args):
seeker(algname, ct_space, rt_values)
except Exception as e:
print(
"#### ERROR exception occurred while running {}: '{}'".format(algname, e)
"#### ERROR exception occurred while running {}: '{}'".format(
algname, e
)
)


Expand Down
2 changes: 1 addition & 1 deletion thrust/examples/mode.cu
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ int main()
thrust::device_vector<int>::iterator mode_iter;
mode_iter = thrust::max_element(d_output_counts.begin(), d_output_counts.end());

int mode = d_output_keys[mode_iter - d_output_counts.begin()];
int mode = d_output_keys[mode_iter - d_output_counts.begin()];
int occurrences = *mode_iter;

std::cout << "Modal value " << mode << " occurs " << occurrences << " times " << std::endl;
Expand Down

0 comments on commit ea40f9d

Please sign in to comment.