Lines Matching refs:num_waves
32 #define SMEM_WINDOW_SIZE (350 - ctx.num_waves * 35)
33 #define VMEM_WINDOW_SIZE (1024 - ctx.num_waves * 64)
35 #define SMEM_MAX_MOVES (64 - ctx.num_waves * 4)
36 #define VMEM_MAX_MOVES (128 - ctx.num_waves * 8)
38 #define VMEM_CLAUSE_MAX_GRAB_DIST ((ctx.num_waves - 1) * 8)
86 int16_t num_waves; member
651 ctx.last_SMEM_stall = 10 - ctx.num_waves - k; in schedule_SMEM()
904 if (program->num_waves <= 5) in schedule_program()
905 ctx.num_waves = program->num_waves; in schedule_program()
907 ctx.num_waves = 5; in schedule_program()
909 ctx.num_waves = 6; in schedule_program()
911 ctx.num_waves = 7; in schedule_program()
912 ctx.num_waves = std::max<uint16_t>(ctx.num_waves, program->min_waves); in schedule_program()
913 ctx.num_waves = std::min<uint16_t>(ctx.num_waves, program->num_waves); in schedule_program()
915 assert(ctx.num_waves > 0); in schedule_program()
916 ctx.mv.max_registers = { int16_t(get_addr_vgpr_from_waves(program, ctx.num_waves) - 2), in schedule_program()
917 int16_t(get_addr_sgpr_from_waves(program, ctx.num_waves))}; in schedule_program()
931 int prev_num_waves = program->num_waves; in schedule_program()
949 assert(program->num_waves == prev_num_waves); in schedule_program()