Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Add dir.props files to hardware intrinsics test directories to control test env variables #15637

Closed
wants to merge 1 commit into from

Conversation

4creators
Copy link

Fixes ##15618

Verified

This commit was signed with the committer’s verified signature. The key has expired.
4creators Jacek Blaszczynski
…l test env variables

Fixes ##15618
@4creators
Copy link
Author

cc @fiigii @tannergooding @jkotas

<CLRTestBatchPreCommands>
<![CDATA[
$(CLRTestBatchPreCommands)
set COMPlus_EnableAVX=0
Copy link
Member

@tannergooding tannergooding Jan 1, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we want to always disable AVX here.

Instead, I think we want to test the following scenarios:

  • SSE2 Enabled, higher ISAs disabled (default since SSE2 is required by RyuJIT)
  • SSE41 Enabled, higher ISAs disabled (some of the helper functions should use INSERTPD, BLENDPD, etc)
  • AVX Enabled, higher ISAs disabled (for VEX encoding path, some helper functions should use VBROADCAST, etc)
  • other ISA Enabled, higher ISAs disabled (for when helper functions use other newer/better instructions)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we want to always disable AVX here.

IMO we need to create a comprehensive testing plan for all Hardware Intrinsic where part of it should comprise setting of environment switches for group of tests. Anyway we are going to face combinatorial bomb here. It is related to #15490

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jkotas @tannergooding

I have unsuccessfully looked for solution to the following problem: how to run same group of tests each time with different environment settings?

This could be useful for example in case of all Sse ... Sse42 intrinsics which in majority of cases can be promoted to AVX/AVX2 and AVX512 codegen and we should run the tests with SSE CodeGen enabled, AVX CodeGen enabled and SSE disabled etc etc

Any ideas?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The simplest approach would be to update the netci.groovy script to have new jobs for the required environments (I believe jitStressModeScenarios is used for this, but I am not positive).

A less expensive approach (not requiring 4 new jobs that run in the outer loop) would be to update the test wrapper, JIT.HardwareIntrinsics.XUnitWrapper, to run just the hardware intrinsic tests with each configuration setting (the wrapper currently configures the environment and calls the generated exe for each test, so it is a logical place to put this logic).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if there is any infrastructure preference on one vs the other (or some other approach), however.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The simplest approach would be to update the netci.groovy script to have new jobs for the required environments

Agree.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK I will try both and we can verify than by running them in CI which is the best solution.

@tannergooding
Copy link
Member

@4creators, can this be closed? I think we went with the other solution....

@4creators
Copy link
Author

Yes, you are right.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants