mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-10 12:53:42 +08:00
Add option to generate random inputs to tests.
Change-Id: I940e6405fbd964bbe8c815f9fc8466d04efe4bbf
This commit is contained in:

committed by
sys_ocldev

parent
c18d0d7634
commit
17de3fbeb9
@ -61,6 +61,7 @@ PRODUCT_FAMILY defaultProductFamily = productFamily;
|
||||
|
||||
extern bool printMemoryOpCallStack;
|
||||
extern std::string lastTest;
|
||||
bool generateRandomInput = false;
|
||||
|
||||
void applyWorkarounds() {
|
||||
{
|
||||
@ -275,6 +276,8 @@ int main(int argc, char **argv) {
|
||||
if (i < argc) {
|
||||
dieRecovery = atoi(argv[i]) ? 1 : 0;
|
||||
}
|
||||
} else if (!strcmp("--generate_random_inputs", argv[i])) {
|
||||
generateRandomInput = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user