Skip to content

Commit

Permalink
Fixed compilation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
PENGUINLIONG committed Sep 7, 2022
1 parent 0cc542f commit 424fa06
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions c_api/include/taichi/cpp/taichi.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ class ComputeGraph {
return at(name);
}

void launch(size_t argument_count, const TiNamedArgument *arguments) {
void launch(uint32_t argument_count, const TiNamedArgument *arguments) {
ti_launch_compute_graph(runtime_, compute_graph_, argument_count,
arguments);
}
Expand Down Expand Up @@ -463,7 +463,7 @@ class Kernel {
return at(i);
}

void launch(size_t argument_count, const TiArgument *arguments) {
void launch(uint32_t argument_count, const TiArgument *arguments) {
ti_launch_kernel(runtime_, kernel_, argument_count, arguments);
}
void launch() {
Expand Down
2 changes: 1 addition & 1 deletion taichi/util/offline_cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ struct KernelMetadata {
};

struct Metadata {
using KernelMetadata = struct KernelMetadata;
using KernelMetadata = KernelMetadata;

Version version{};
std::size_t size{0}; // byte
Expand Down

0 comments on commit 424fa06

Please sign in to comment.