In the PyKokkos parallel dispatch interface, validate explicit generic View annotations (e.g., pk.View1D[T]) against the actual View.dtype. Resolve annotations and dtypes to canonical names: Python int→int32, float→float64, bool→uint8; PyKokkos aliases float→float32, double→float64, bool→uint8. Validation runs only when the argument value is a View and its parameter carries an explicit View[...] hint resolving to a non-null canonical dtype; otherwise skip. On mismatch, raise TypeError with message Argument '{name}' expects a View with dtype {expected}, but received dtype {actual}.. Unannotated parameters must remain unaffected, preserving inference (e.g., NumPy int arrays mapping to int64). Accept exact matches such as np.int32 for pk.View1D[pk.int32]. Reject mismatches including int64 for int or int32, float64 for float32, and float32 for float (float64). Non-View arguments and missing hints are unaffected.
The repository is checked out at /workspace/repo. Work only on production
source code. Do not modify tests, CMake registration, CI configuration, or the
grading environment. Network access is unavailable and git history contains
only the base revision, so do not spend time looking for upstream commits or
pull requests. Diagnose from the local source, make a production-code change,
and use the smallest relevant target in the existing build tree for local
verification.