
    )`i                     N    d Z ddlZddlmZ ej        dej        fd            ZdS )a3  
Copyright (c) 2025 by FlashInfer team.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
    N
num_stagesc                    t          j        d          }t          j        | |z             }t          j        | |z   dz             }t          j        ||z             }t          j        ||d|          D ]X}	t          j        dd          |	z   }
|
|k     }t          j        ||
z   ||           t          j        ||
z   |
|z   |z
  |           Yd S )Nr         )r   )tl
program_idloadrangearangestore)append_indptrseq_lens_ptrbatch_indices_ptrpositions_ptrr   	batch_idxbatch_start	batch_endseq_lenioffsetsmasks               j/home/jaya/work/projects/VOICE-AGENT/VIET/agent-env/lib/python3.11/site-packages/flashinfer/triton/page.py"get_batch_indices_positions_kernelr      s     a  I'-)344K	1A566IglY.//GXk9cjIII O O)As##a'"
"W,i>>>
('G*;i*GNNNN	O O    )__doc__tritontriton.languagelanguager   jit	constexprr    r   r   <module>r"      sk             O
 O O O O O Or   