27 | const size_t idx_base = (blockIdx.x * blockDim.x + threadIdx.x) * 4;
| ^
/home/robert_sakana_ai/llm_cuda/experiments/20250212_optimize_b5_s4_e1_v2/level_1/task_27/b5_s2_27_selu_aligned_ldg/base/base.cu:27:29: note: make conversion explicit to silence this warning
5 | const size_t idx_base = (blockIdx.x * blockDim.x + threadIdx.x) * 4;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| static_cast<const size_t>( )
/home/robert_sakana_ai/llm_cuda/experiments/20250212_optimize_b5_s4_e1_v2/level_1/task_27/b5_s2_27_selu_aligned_ldg/base/base.cu:27:29: note: perform multiplication in a wider type
27 | const size_t idx_base = (blockIdx.x * blockDim.x + threadIdx.x) * 4;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| static_cast<const size_t>( )
/home/robert_sakana_ai/llm_cuda/experiments/20250212_optimize_b5_s4_e1_v2/level_1/task_27/b5_s2_27_selu_aligned_ldg/base/base.cu:28:27: warning: performing an implicit widening conversion to type 'const size_t' (aka 'const unsigned long') of a multiplication performed in type 'unsigned int' [bugprone-implicit-widening-of-multiplication-result]
28 | const size_t stride = blockDim.x * gridDim.x * 4;
| ^
/home/robert_sakana_ai/llm_cuda/experiments/20250212_optimize_b5_s4_e1_v2/level_1/task_27/b5_s2_27_selu_aligned_ldg/base/base.cu:28:27: note: make conversion explicit to silence this warning
28 | const size_t stride = blockDim.x * gridDim.x * 4;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| static_cast<const size_t>()
/home/robert_sakana_ai/llm_cuda/experiments/20250212_optimize_b5_s4_e1_v2/level_1/task_27/b5_s2_27_selu_aligned_ldg/base/base.cu:28:27: note: perform multiplication in a wider type
28 | const size_t stride = blockDim.x * gridDim.x * 4;
| ^~~~~~~~~~~~~~~~~~~~~~
| static_cast<const size_t>( )
/home/robert_sakana_ai/llm_cuda/experiments/20250212_optimize_b5_s4_e1_v2/level_1/task_27/b5_s2_27_selu_aligned_ldg/base/base.cu:88:24: warning: narrowing conversion from 'size_t' (aka 'unsigned long') to signed type 'int' is implementation-defined [bugprone-narrowing-conversions]
88 | const int blocks = (numel + threads * 4 - 1) / (threads * 4);
| ^
/home/robert_sakana_ai/llm_cuda/experiments/20250212_optimize_b5_s4_e1_v2/level_1/task_27/b5_s2_27_selu_aligned_ldg/base/base.cu:88:33: warning: performing an implicit widening conversion to type 'size_t' (aka 'unsigned long') of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
88 | const int blocks = (numel + threads * 4 - 1) / (threads * 4);
| ^
/home/robert_sakana_ai/llm_cuda/experiments/20250212_optimize_b5_s4_e1_v2/level_1/task_27/b5_s2_27_selu_aligned_ldg/base/base.cu:88:33: note: make conversion explicit to silence this warning
88 | const int blocks = (numel + threads * 4 - 1) / (threads * 4);
| ^~~~~~~~~~~
| static_cast<size_t>( )
/home/robert_sakana_ai/llm_cuda/experiments/20250212_optimize_b5_s4_e1_v2/level_1/task_27/b5_s2_27_selu_aligned_ldg/base/base.cu:88:33: note: perform multiplication in a wider type
88 | const int blocks = (numel + threads * 4 - 1) / (threads * 4);
| ^~~~~~~
| static_cast<long>( )
/home/robert_sakana_ai/llm_cuda/experiments/20250212_optimize_b5_s4_e1_v2/level_1/task_27/b5_s2_27_selu_aligned_ldg/base/base.cu:88:53: warning: performing an implicit widening conversion to type 'size_t' (aka 'unsigned long') of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result]
88 | const int blocks = (numel + threads * 4 - 1) / (threads * 4);
| ^
/home/robert_sakana_ai/llm_cuda/experiments/20250212_optimize_b5_s4_e1_v2/level_1/task_27/b5_s2_27_selu_aligned_ldg/base/base.cu:88:53: note: make conversion explicit to silence this warning
88 | const int blocks = (numel + threads * 4 - 1) / (threads * 4);
| ^~~~~~~~~~~
| static_cast<size_t>( )
/home/robert_sakana_ai/llm_cuda/experiments/20250212_optimize_b5_s4_e1_v2/level_1/task_27/b5_s2_27_selu_aligned_ldg/base/base.cu:88:53: note: perform multiplication in a wider type
88 | const int blocks = (numel + threads * 4 - 1) / (threads * 4);
| ^~~~~~~
| static_cast<long>( )
/home/robert_sakana_ai/llm_cuda/experiments/20250212_optimize_b5_s4_e1_v2/level_1/task_27/b5_s2_27_selu_aligned_ldg/base/base.cu:90: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]
90 | AT_DISPATCH_FLOATING_TYPES(input.scalar_type(), "selu_forward_cuda", ([&] {
| ^
/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__, \
| ^