Skip to content

The number of parameters for buffer in spv file ranges from 2-4 #18882

@shixinlishixinli

Description

@shixinlishixinli

Describe the bug

i try to use spv file , which is generated by "icpx -save-temps". but i have found that the num of parameters for buffer is different from 2 to 4. why the num is different ? how to set arguments by in my level0 code? how to calculate the num of params in level0 through sycl code?

  • index: 0
    name: _arg_d_acc
    address_qualifier: __global
    access_qualifier: NONE
    type_name: 'float*;8'
    type_qualifiers: NONE
    • index: 1
      name: _arg_d_acc2
      address_qualifier: __private
      access_qualifier: NONE
      type_name: 'class.sycl::_V1::range;16'
      type_qualifiers: NONE
    • index: 2
      name: _arg_d_acc3
      address_qualifier: __private
      access_qualifier: NONE
      type_name: 'class.sycl::_V1::range;16'
      type_qualifiers: NONE

Best
Lisa Shi

To reproduce

  1. Include a code snippet that is as short as possible
  2. Specify the command which should be used to compile the program
  3. Specify the command which should be used to launch the program
  4. Indicate what is wrong and what was expected

Environment

  • OS: [e.g Windows/Linux]
  • Target device and vendor: [e.g. Intel GPU]
  • DPC++ version: [e.g. commit hash or output of clang++ --version]
  • Dependencies version: [e.g. the output of sycl-ls --verbose]

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    StalebugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions