-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for RTX #1693
Comments
When does the application crash, right at the start or after starting the benchmark? |
The application crashes at the line Running the tests with I found in the documentation that there is no bootstrapping done. But what exactly do I disable here? Where can I find out more about the internals of the benchmarking process? Also I would read more about the numbers at the end of the benchmark. Where could I find this? |
what is called bootstrapping here is the statistical analysis of the measured values, this means (using the default values): 100 samples are actually measured, but afterwards 10000 times a sample is randomly selected and then on these 10000 samples statistical metrics like the mean and std deviation is calculated. if disabling this analysis, you still get the mean calculated over the 100 measured samples, but you don't get statistical proven data. |
Thank you for this explanation. I think this issue can be closed. |
Is there a macro that identifies compiler targeting the RTX platform? If so, we can make Catch2 autoconfigure some toggles for you (so SEH will be disabled by default, same for async and colours). |
@horenmar: This is a great idea and indeed there are several defines:
If such a define is present the following things should be done:
|
Thank you for integrating this!! |
I successfully used Catch v2.1.2 together with the Intervalzero RTX operting system. Now I try to upgrade from Catch v2.1.2 to v2.9.1.
Unfortunately I get the following linker errors when I enable the benchmark feature with
CATCH_CONFIG_ENABLE_BENCHMARKING
:When disabling async with
CATCH_CONFIG_NO_USE_ASYNC
the build succeeds. But when running the test I get a crash because the class std::random_device is not supported under RTX.This leads me to the question if there is a kind of OSAL (Operating System Abstraction Layer) so that any operating system with console IO and timing measurement could use Catch (with the benchmarking feature).
In the past I had to opt use
CATCH_CONFIG_NO_WINDOWS_SEH
andCATCH_CONFIG_COLOUR_NONE
to be able to use Catch with RTX but I do not see a solution to opt out thestd::random_device
Expected behavior
New flag to opt out types from random-header
CATCH_CONFIG_NO_RANDOM
?Platform information:
The text was updated successfully, but these errors were encountered: