Skip to content

Commit 7678b6b

Browse files
committed
comment
1 parent 5023151 commit 7678b6b

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

llvm/tools/llvm-gpu-loader/llvm-gpu-loader.cpp

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -41,28 +41,28 @@ static cl::opt<bool> Help("h", cl::desc("Alias for -help"), cl::Hidden,
4141
cl::cat(LoaderCategory));
4242

4343
static cl::opt<unsigned>
44-
Threads_x("threads-x", cl::desc("Number of threads in the 'x' dimension"),
45-
cl::init(1), cl::cat(LoaderCategory));
44+
ThreadsX("threads-x", cl::desc("Number of threads in the 'x' dimension"),
45+
cl::init(1), cl::cat(LoaderCategory));
4646
static cl::opt<unsigned>
47-
Threads_y("threads-y", cl::desc("Number of threads in the 'y' dimension"),
48-
cl::init(1), cl::cat(LoaderCategory));
47+
ThreadsY("threads-y", cl::desc("Number of threads in the 'y' dimension"),
48+
cl::init(1), cl::cat(LoaderCategory));
4949
static cl::opt<unsigned>
50-
Threads_z("threads-z", cl::desc("Number of threads in the 'z' dimension"),
51-
cl::init(1), cl::cat(LoaderCategory));
52-
static cl::alias threads("threads", cl::aliasopt(Threads_x),
50+
ThreadsZ("threads-z", cl::desc("Number of threads in the 'z' dimension"),
51+
cl::init(1), cl::cat(LoaderCategory));
52+
static cl::alias threads("threads", cl::aliasopt(ThreadsX),
5353
cl::desc("Alias for --threads-x"),
5454
cl::cat(LoaderCategory));
5555

5656
static cl::opt<unsigned>
57-
Blocks_x("blocks-x", cl::desc("Number of blocks in the 'x' dimension"),
58-
cl::init(1), cl::cat(LoaderCategory));
57+
BlocksX("blocks-x", cl::desc("Number of blocks in the 'x' dimension"),
58+
cl::init(1), cl::cat(LoaderCategory));
5959
static cl::opt<unsigned>
60-
Blocks_y("blocks-y", cl::desc("Number of blocks in the 'y' dimension"),
61-
cl::init(1), cl::cat(LoaderCategory));
60+
BlocksY("blocks-y", cl::desc("Number of blocks in the 'y' dimension"),
61+
cl::init(1), cl::cat(LoaderCategory));
6262
static cl::opt<unsigned>
63-
Blocks_z("blocks-z", cl::desc("Number of blocks in the 'z' dimension"),
64-
cl::init(1), cl::cat(LoaderCategory));
65-
static cl::alias Blocks("blocks", cl::aliasopt(Blocks_x),
63+
BlocksZ("blocks-z", cl::desc("Number of blocks in the 'z' dimension"),
64+
cl::init(1), cl::cat(LoaderCategory));
65+
static cl::alias Blocks("blocks", cl::aliasopt(BlocksX),
6666
cl::desc("Alias for --blocks-x"),
6767
cl::cat(LoaderCategory));
6868

@@ -263,10 +263,10 @@ int main(int argc, const char **argv, const char **envp) {
263263
launchKernel(Queue, Device, Program, "_begin", BeginLaunch, BeginArgs);
264264
OFFLOAD_ERR(olSyncQueue(Queue));
265265

266-
uint32_t Dims = (Blocks_z > 1) ? 3 : (Blocks_y > 1) ? 2 : 1;
266+
uint32_t Dims = (BlocksZ > 1) ? 3 : (BlocksY > 1) ? 2 : 1;
267267
ol_kernel_launch_size_args_t StartLaunch{Dims,
268-
{Blocks_x, Blocks_y, Blocks_z},
269-
{Threads_x, Threads_y, Threads_z},
268+
{BlocksX, BlocksY, BlocksZ},
269+
{ThreadsX, ThreadsY, ThreadsZ},
270270
/*SharedMemBytes=*/0};
271271
StartArgs StartArgs = {DevArgc, DevArgv, DevEnvp, DevRet};
272272
launchKernel(Queue, Device, Program, "_start", StartLaunch, StartArgs);

0 commit comments

Comments
 (0)