15 | const scalar_t* __restrict__ bn_weight, // BatchNorm scale, shape: [out_features]
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
16 | const scalar_t* __restrict__ bn_bias, // BatchNorm bias, shape: [out_features]
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/robert_sakana_ai/llm_cuda/experiments/20250203_optimize_b10_s4_e0_sweep/level_2/task_97/b7_s1_sync_optimized_fused_bn_swish/base/base.cu:15:34: note: the first parameter in the range is 'bn_weight'
15 | const scalar_t* __restrict__ bn_weight, // BatchNorm scale, shape: [out_features]
| ^~~~~~~~~
/home/robert_sakana_ai/llm_cuda/experiments/20250203_optimize_b10_s4_e0_sweep/level_2/task_97/b7_s1_sync_optimized_fused_bn_swish/base/base.cu:16:34: note: the last parameter in the range is 'bn_bias'
16 | const scalar_t* __restrict__ bn_bias, // BatchNorm bias, shape: [out_features]
| ^~~~~~~
/home/robert_sakana_ai/llm_cuda/experiments/20250203_optimize_b10_s4_e0_sweep/level_2/task_97/b7_s1_sync_optimized_fused_bn_swish/base/base.cu:17:5: warning: 2 adjacent parameters of 'sync_optimized_fused_bn_swish_kernel' of similar type ('scalar_t *__restrict') are easily swapped by mistake [bugprone-easily-swappable-parameters]
17 | scalar_t* __restrict__ bn_running_mean, // Running mean, shape: [out_features]
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18 | scalar_t* __restrict__ bn_running_var, // Running variance, shape: [out_features]
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/robert_sakana_ai/llm_cuda/experiments/20250203_optimize_b10_s4_e0_sweep/level_2/task_97/b7_s1_sync_optimized_fused_bn_swish/base/base.cu:17:28: note: the first parameter in the range is 'bn_running_mean'
17 | scalar_t* __restrict__ bn_running_mean, // Running mean, shape: [out_features]
| ^~~~~~~~~~~~~~~
/home/robert_sakana_ai/llm_cuda/experiments/20250203_optimize_b10_s4_e0_sweep/level_2/task_97/b7_s1_sync_optimized_fused_bn_swish/base/base.cu:18:28: note: the last parameter in the range is 'bn_running_var'
18 | scalar_t* __restrict__ bn_running_var, // Running variance, shape: [out_features]
| ^~~~~~~~~~~~~~
/home/robert_sakana_ai/llm_cuda/experiments/20250203_optimize_b10_s4_e0_sweep/level_2/task_97/b7_s1_sync_optimized_fused_bn_swish/base/base.cu:20:5: warning: 5 adjacent parameters of 'sync_optimized_fused_bn_swish_kernel' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters]
20 | const float bn_eps,
| ^~~~~~~~~~~~~~~~~~~
21 | const float bn_momentum,
| ~~~~~~~~~~~~~~~~~~~~~~~~
22 | const float divide_value,
| ~~~~~~~~~~~~~~~~~~~~~~~~~
23 | const int batch_size,
| ~~~~~~~~~~~~~~~~~~~~~
24 | const int out_features) {
| ~~~~~~~~~~~~~~~~~~~~~~
/home/robert_sakana_ai/llm_cuda/experiments/20250203_optimize_b10_s4_e0_sweep/level_2/task_97/b7_s1_sync_optimized_fused_bn_swish/base/base.cu:20:17: note: the first parameter in the range is 'bn_eps'
20 | const float bn_eps,
| ^~~~~~
/home/robert_sakana_ai/llm_cuda/experiments/20250203_optimize_b10_s4_e0_sweep/level_2/task_97/b7_s1_sync_optimized_fused_bn_swish/base/base.cu:24:15: note: the last parameter in the range is 'out_features'
24 | const int out_features) {
| ^~~~~~~~~~~~
/home/robert_sakana_ai/llm_cuda/experiments/20250203_optimize_b10_s4_e0_sweep/level_2/task_97/b7_s1_sync_optimized_fused_bn_swish/base/base.cu:23:5: note: 'const float' and 'const int' may be implicitly converted: 'const float' (as 'float') -> 'const int' (as 'int'), 'const int' (as 'int') -> 'const float' (as 'float')
23 | const int batch_size,
| ^
/home/robert_sakana_ai/llm_cuda/experiments/20250203_optimize_b10_s4_e0_sweep/level_2/task_97/b7_s1_sync_optimized_fused_bn_swish/base/base.cu:27:19: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions]
27 | const int f = blockIdx.x;
| ^
/home/robert_sakana_ai/llm_cuda/experiments/20250203_optimize_b10_s4_e0_sweep/level_2/task_97/b7_s1_sync_optimized_fused_bn_swish/base/base.cu:29:21: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions]
29 | const int tid = threadIdx.x;
| ^
/home/robert_sakana_ai/llm_cuda/experiments/20250203_optimize_b10_s4_e0_sweep/level_2/task_97/b7_s1_sync_optimized_fused_bn_swish/base/base.cu:40:54: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions]
40 | for (int i = tid * vec_size; i < vec_limit; i += blockDim.x * vec_size) {
| ^
/home/robert_sakana_ai/llm_cuda/experiments/20250203_optimize_b10_s4_e0_sweep/level_2/task_97/b7_s1_sync_optimized_fused_bn_swish/base/base.cu:51:56: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions]
51 | for (int i = vec_limit + tid; i < batch_size; i += blockDim.x) {
| ^
/home/robert_sakana_ai/llm_cuda/experiments/20250203_optimize_b10_s4_e0_sweep/level_2/task_97/b7_s1_sync_optimized_fused_bn_swish/base/base.cu:68:26: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions]
68 | const int numWarps = blockDim.x / 32;
| ^
/home/robert_sakana_ai/llm_cuda/experiments/20250203_optimize_b10_s4_e0_sweep/level_2/task_97/b7_s1_sync_optimized_fused_bn_swish/base/base.cu:95:34: warning: narrowing conversion from 'int' to 'float' [bugprone-narrowing-conversions]
95 | float mean = total_sum / batch_size;
| ^
/home/robert_sakana_ai/llm_cuda/experiments/20250203_optimize_b10_s4_e0_sweep/level_2/task_97/b7_s1_sync_optimized_fused_bn_swish/base/base.cu:96:35: warning: narrowing conversion from 'int' to 'float' [bugprone-narrowing-conversions]
96 | float var = total_sumsq / batch_size - mean * mean;
| ^
/home/robert_sakana_ai/llm_cuda/experiments/20250203_optimize_b10_s4_e0_sweep/level_2/task_97/b7_s1_sync_optimized_fused_bn_swish/base/base.cu:115:54: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions]
115 | for (int i = tid * vec_size; i < vec_limit; i += blockDim.x * vec_size) {
| ^
/home/robert_sakana_ai/llm_cuda/experiments/20250203_optimize_b10_s4_e0_sweep/level_2/task_97/b7_s1_sync_optimized_fused_bn_swish/base/base.cu:130:56: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions]
130 | for (int i = vec_limit + tid; i < batch_size; i += blockDim.x) {
| ^
/home/robert_sakana_ai/llm_cuda/experiments/20250203_optimize_b10_s4_e0_sweep/level_2/task_97/b7_s1_sync_optimized_fused_bn_swish/base/base.cu:149:5: warning: 2 adjacent parameters of 'module_fn_cuda' of similar type ('torch::Tensor') are easily swapped by mistake [bugprone-easily-swappable-parameters]
149 | torch::Tensor bias,
| ^~~~~~~~~~~~~~~~~~~
150 | torch::Tensor bn_weight,
| ~~~~~~~~~~~~~~~~~~~~~~~
/home/robert_sakana_ai/llm_cuda/experiments/20250203_optimize_b10_s4_e0_sweep/level_2/task_97/b7_s1_sync_optimized_fused_bn_swish/base/base.cu:149:19: note: the first parameter in the range is 'bias'
149 | torch::Tensor bias,
| ^~~~
/home/robert_sakana_ai/llm_cuda/experiments/20250203_optimize_b10_s4_e0_sweep/level_2/task_97/b7_s1_sync_optimized_fused_bn_swish/base/base.cu:150:19: note: the last parameter in the range is 'bn_weight'
150 | torch::Tensor bn_weight,
| ^~~~~~~~~
/home/robert_sakana_ai/llm_cuda/experiments/20250203_optimize_b10_s4_e0_sweep/level_2/task_97/b7_s1_sync_optimized_fused_bn_swish/base/base.cu:170:24: warning: narrowing conversion from 'int64_t' (aka 'long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions]
170 | const int blocks = out_features;
| ^
/home/robert_sakana_ai/llm_cuda/experiments/20250203_optimize_b10_s4_e0_sweep/level_2/task_97/b7_s1_sync_optimized_fused_bn_swish/base/base.cu:172:36: warning: performing an implicit widening conversion to type 'unsigned long' of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
172 | const size_t shared_mem_size = 2 * (threads / 32) * sizeof(float);
| ^
/home/robert_sakana_ai/llm_cuda/experiments/20250203_optimize_b10_s4_e0_sweep/level_2/task_97/b7_s1_sync_optimized_fused_bn_swish/base/base.cu:172:36: note: make conversion explicit to silence this warning
4 | const size_t shared_mem_size = 2 * (threads / 32) * sizeof(float);
| ^~~~~~~~~~~~~~~~~~
| static_cast<unsigned long>( )
/home/robert_sakana_ai/llm_cuda/experiments/20250203_optimize_b10_s4_e0_sweep/level_2/task_97/b7_s1_sync_optimized_fused_bn_swish/base/base.cu:172:36: note: perform multiplication in a wider type
172 | const size_t shared_mem_size = 2 * (threads / 32) * sizeof(float);
| ^
| static_cast<long>( )
/home/robert_sakana_ai/llm_cuda/experiments/20250203_optimize_b10_s4_e0_sweep/level_2/task_97/b7_s1_sync_optimized_fused_bn_swish/base/base.cu:174:5: warning: inside a lambda, '__func__' expands to the name of the function call operator; consider capturing the name of the enclosing function explicitly [bugprone-lambda-function-name]
174 | AT_DISPATCH_FLOATING_TYPES(x_linear.scalar_type(), "sync_optimized_fused_bn_swish_kernel", ([&] {
| ^
/home/robert_sakana_ai/miniconda3/envs/llm2cuda/lib/python3.11/site-packages/torch/include/ATen/Dispatch.h:237:34: note: expanded from macro 'AT_DISPATCH_FLOATING_TYPES'
237 | AT_DISPATCH_SWITCH(TYPE, NAME, AT_DISPATCH_CASE_FLOATING_TYPES(__VA_ARGS__))
| ^
/home/robert_sakana_ai/miniconda3/envs/llm2cuda/lib/python3.11/site-packages/torch/include/ATen/Dispatch.h:233:3: note: expanded from macro 'AT_DISPATCH_CASE_FLOATING_TYPES'
233 | AT_DISPATCH_CASE(at::ScalarType::Double, __VA_ARGS__) \
| ^
/home/robert_sakana_ai/miniconda3/envs/llm2cuda/lib/python3.11/site-packages/torch/include/ATen/Dispatch.h:74:3: note: expanded from macro 'AT_DISPATCH_CASE'
74 | AT_PRIVATE_CASE_TYPE_USING_HINT(enum_type, scalar_t, __VA_ARGS__)
| ^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
/home/robert_sakana_ai/miniconda3/envs/llm2cuda/lib/python3.11/site-packages/torch/include/ATen/Dispatch.h:58:7: note: expanded from macro 'AT_PRIVATE_CHECK_SELECTIVE_BUILD'
58 | AT_ERROR( \
| ^
/home/robert_sakana_ai/miniconda3/envs/llm2cuda/lib/python3.11/site-packages/torch/include/c10/util/Exception.h:711:32: note: expanded from macro 'AT_ERROR'
711 | C10_EXPAND_MSVC_WORKAROUND(TORCH_CHECK(false, ::c10::str(__VA_ARGS__))); \
| ^
/home/robert_sakana_ai/miniconda3/envs/llm2cuda/lib/python3.11/site-packages/torch/include/c10/util/Exception.h:536:9: note: expanded from macro 'TORCH_CHECK'
536 | __func__, \
| ^