Skip to content
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

Migrate examples #4920

Merged
merged 3 commits into from
Aug 27, 2024
Merged

Commits on Aug 27, 2024

  1. Migrate cpu-hello-world to new slang API

    Migrate cpu-hello-world to new slang API, and also convert this example
    as one of the unit test.
    
    Fix some bugs in replayer:
      - Wrong decode type in 'getEntryPointHostCallable'.
      - Mistakes in computing the output buffer size.
    
    Improve json consumer on the prelude text.
    kaizhangNV committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    9be5945 View commit details
    Browse the repository at this point in the history
  2. Add 'shader-object' to slang-unit-test

    Convert 'shader-object' to record-replay test and add it to
    slang-unit-test group.
    
    Fix some replay bugs:
     - Wrong decode type in array size in specialize() call.
    kaizhangNV committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    a596a39 View commit details
    Browse the repository at this point in the history
  3. Convert ray-tracing example into unit-test

    Convert ray-tracing example into unit-test
    
    Add ray-tracing into slang-unit-test
    
    Fix the memory management issue in the record layer
     - When capture entrypoint, we should increase the reference count
       for the allocated entrypoint recorder object, because that is
       allocated by record layer, it should be owned by the layer, user
       should not be able to free it.
    
    In our test, we add a "callIdx" string at beginning of the hash-code
    string, as there could be more than one modules in the example, so they
    could call 'getEntryPointHash' multiple times, in order for the test
    can identify them, add "callIdx: <number>" as the key word.
    kaizhangNV committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    31bc65e View commit details
    Browse the repository at this point in the history