Skip to content

Test stops responding when first "// AfterAll" displayed #1383

Closed
@JohnMasen

Description

@JohnMasen

I found my test will stop responding on first "//AfterALL" output. the following clues during debugging.

  1. Testing on GPU accelerated library will trigger this issue, CPU library does not have this problem
  2. the problem will gone if I use "InProcessEmitToolchain", however it will trigger [GlobalSetup] method crash when more than 1 parameters are used. for example
[Params(10000)]  // it works
 public int Items { get; set; } 
[Params(1000,10000)] //[GlobalSetup] method will crash when Items=10000 
public int Items { get; set; } 
  1. tried to manual run the test code to figure out if the test code hang it self, turns out test code is fine.
ComputeShaderPerformanceILGPU c = new ComputeShaderPerformanceILGPU() { CopyBack = false, Items = 1000 };
c.Acc = c.GetAccelerators.First();
c.Init(); // global setup
c.Step(); //benchmark
c.Close(); //global cleanup

Source code is at https://github.com/JohnMasen/VirusSimulator under DEV branch, project "ComputeShaderTest.csproj"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions