Repository navigation
Native direct check for Model L; the native candidate names the model it runs - #151
Merged
Merged
Conversation
… it runs - clean/dx12/tests/native_direct_build.py --model-l: the test program with Model L (WG_MODEL_L, clean/l/runtime). - clean/dx12/tests/native_direct_test.cpp: an optional last argument, the model (M by default; L: runtime option model=L, model.wgcm, no output_filter=original, since Model L's file has no output-filter weights). OPTIONS prints it. - clean/runtime/interop/native_candidate.cpp: provider() says "Model L native D3D12, ..." when the runtime runs Model L; Model M's text is unchanged. Refs #89 Signed-off-by: phantoslayer21 <156617979+phantoslayer21@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The native direct-resource check for Model L, and a provider label that names the model it runs.
What changes
clean/dx12/tests/native_direct_build.py --model-l: builds the test program with Model L (WG_MODEL_L, thesources in
clean/l/runtime).clean/dx12/tests/native_direct_test.cpp: an optional last argument, the model.M(the default) is unchanged.Lruns with the runtime optionmodel=Land readsmodel.wgcm, with nooutput_filter=original, since ModelL's file has no output-filter weights. Model L's map is found as
preset-L.v1.map.jsonin the build folder.OPTIONSprints the model.clean/runtime/interop/native_candidate.cpp:provider()says "Model L native D3D12, ..." when the runtime runsModel L. Model M's text is unchanged.
Refs #89
GPU record (this branch's test program; build = main's D3D12 kernels and HIP code objects with
l_frame_check.py --prepare's synthetic models; locked GPU slot,gpu_slot.py --cap-s 170)The command:
PASS native direct check queue=direct frames_compared=2 format_combinations=1 cycles=1 mutation=1, 2.1 s in theslot:
PROVIDERS direct=Model L native D3D12, supplied device/queue, direct textures staged=Model L native D3D12, ....WG_LAUNCH_TRACE):l_linear_32_32_relu/_f16,l_swin_block_c32_enc_nc/_dec_nc,l_project_gather,l_dec_projectandl_coef_pack12;lev/input_encoder_directandw64/post_tf_f32_p12_diet_vsit_direct;lev/input_encoderandw64/post_tf_f32_p12_diet_vsit.native_candidate.cpp) passed 4 frames, 5.5 s inthe slot. A later 2-frame run hit the slot's 170 s cap while creating pipeline states, with the game run and a
build on the machine at the same time; re-run idle, it passed (the record above).
Tested
Not tested
WG_LAUNCH_TRACEfor the proof).