Skip to content

Commit

Permalink
Fixed typo in EntryPoint class.
Browse files Browse the repository at this point in the history
  • Loading branch information
m4rs-mt committed Aug 31, 2023
1 parent f7bb79e commit 751f6b1
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Src/ILGPU/Backends/Backend.cs
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ public CompiledKernel Compile<TBackendHook>(
entry,
backendContext,
specialization);
if (entryPoint.IsImplictlyGrouped &&
if (entryPoint.IsImplicitlyGrouped &&
backendContext.SharedMemorySpecification.HasSharedMemory)
{
throw new NotSupportedException(
Expand Down
2 changes: 1 addition & 1 deletion Src/ILGPU/Backends/EntryPoints/EntryPoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public EntryPoint(
/// <summary>
/// Returns true if the entry point represents an implicitly grouped kernel.
/// </summary>
public bool IsImplictlyGrouped => !IsExplicitlyGrouped;
public bool IsImplicitlyGrouped => !IsExplicitlyGrouped;

/// <summary>
/// Returns the index type of the index parameter.
Expand Down
4 changes: 2 additions & 2 deletions Src/ILGPU/Backends/IL/DefaultILBackend.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ---------------------------------------------------------------------------------------
// ILGPU
// Copyright (c) 2018-2021 ILGPU Project
// Copyright (c) 2018-2023 ILGPU Project
// www.ilgpu.net
//
// File: DefaultILBackend.cs
Expand Down Expand Up @@ -51,7 +51,7 @@ protected override void GenerateCode<TEmitter>(
if (entryPoint.MethodInfo.IsNotCapturingLambda())
emitter.Emit(OpCodes.Ldnull);

if (entryPoint.IsImplictlyGrouped)
if (entryPoint.IsImplicitlyGrouped)
{
// Load index
emitter.Emit(LocalOperation.Load, index);
Expand Down
6 changes: 3 additions & 3 deletions Src/ILGPU/Backends/PTX/PTXArgumentMapper.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ---------------------------------------------------------------------------------------
// ILGPU
// Copyright (c) 2018-2021 ILGPU Project
// Copyright (c) 2018-2023 ILGPU Project
// www.ilgpu.net
//
// File: PTXArgumentMapper.cs
Expand Down Expand Up @@ -48,7 +48,7 @@ public MappingHandler(EntryPoint entryPoint)
public bool CanMapKernelLength(out Type indexType)
{
indexType = EntryPoint.KernelIndexType;
return EntryPoint.IsImplictlyGrouped;
return EntryPoint.IsImplicitlyGrouped;
}

public void MapKernelLength<TILEmitter, TTarget>(
Expand All @@ -57,7 +57,7 @@ public void MapKernelLength<TILEmitter, TTarget>(
where TILEmitter : struct, IILEmitter
where TTarget : struct, ITarget
{
Debug.Assert(EntryPoint.IsImplictlyGrouped);
Debug.Assert(EntryPoint.IsImplicitlyGrouped);

var argumentSource = new ArgumentSource(
kernelLengthTarget.TargetType,
Expand Down
2 changes: 1 addition & 1 deletion Src/ILGPU/Runtime/KernelLauncherBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public static void EmitLoadKernelConfig<TEmitter>(
int customGroupSize = 0)
where TEmitter : struct, IILEmitter
{
if (entryPoint.IsImplictlyGrouped)
if (entryPoint.IsImplicitlyGrouped)
{
Debug.Assert(customGroupSize >= 0, "Invalid custom group size");

Expand Down

0 comments on commit 751f6b1

Please sign in to comment.