From 40d8f3aeedf018c7c6766e98ec64733abd90671e Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Mon, 16 Sep 2019 09:38:21 -0400 Subject: CPU Performance/Testing improvements (#1055) * First pass of render-test refactor. * Make window construction a function that can choose an implementation. * Remove OpenGL as currently has windows dependency. * Disable Vulkan as Renderer impl has dependency on windows. * Pass Window in as parameter of 'update'. * Add win-window.cpp as was missing. * Fix warning on windows about signs during comparison. * * Added mechanism to add random arrays as buffer inputs and select type * Improved RenderGenerator to generate more types, and to be more careful around int32 ranges. * Added support for security checks (for Visual Studio C++) * Disable Execption handling being on by default when compiling kernels * Added a 'Group' version of the entry point that will evaluate all threads in a group in a single call. In test code use this method if available. * Added -compile-arg to be able to pass arguments to the compile within render-test * Add documention for the _Group execution feature. * Fix some typos in cpu-target.md --- tools/render-test/options.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'tools/render-test/options.cpp') diff --git a/tools/render-test/options.cpp b/tools/render-test/options.cpp index a9e51b8e0..1cf0ffbe8 100644 --- a/tools/render-test/options.cpp +++ b/tools/render-test/options.cpp @@ -156,6 +156,19 @@ SlangResult parseOptions(int argc, const char*const* argv, Slang::WriterHelper s { gOptions.onlyStartup = true; } + else if (strcmp(arg, "-compile-arg") == 0) + { + if (argCursor == argEnd) + { + stdError.print("expected argument for '%s' option\n", arg); + return SLANG_FAIL; + } + + CommandLine::Arg arg; + arg.type = CommandLine::ArgType::Escaped; + arg.value = *argCursor++; + gOptions.compileArgs.add(arg); + } else if (strcmp(arg, "-adapter") == 0) { if (argCursor == argEnd) -- cgit v1.2.3