call → compile_kernel
callcompile_kernel
{
"kernel_code": "import torch\nimport torch.nn as nn\nfrom torch.utils.cpp_extension import load_inline\n\nmcmc_cuda = load_inline(\n name='mcmc_cuda_fused',\n cpp_sources='''\n#include <torch/extension.h>\n\nstd::tuple<torch::Tensor, torch::Tensor> mcmc_step_cuda(\n torch::Tensor x, torch::Tensor mu, torch::Tensor sigma, float step_size);\n''',\n cuda_sources='''\n#include <torch/extension.h>\n#include <ATen/cuda/CUDAGeneratorImpl.h>\n#include <curand_kernel.h>\n\n// Philox-based RNG for random number generation\n__global__ void mcmc_step_kernel(\n const float* __restrict__ x,\n const float* __restrict__ mu,\n const float* __restrict__ sigma,\n float* __restrict__ x_new,\n bool* __restrict__ accepted,\n float step_size,\n int batch_size,\n int dim,\n at::PhiloxCudaState rng_state\n) {\n int batch_idx = blockIdx.x * blockDim.x + threadIdx.x;\n \n if (batch_idx >= batch_size) return;\n \n // Initialize Philox RNG\n auto seeds = at::cuda::philox::unpack(rng_state);\n curandStatePhilox4_32_10_t state;\n curand_init(std::get<0>(seeds), batch_idx, std::get<1>(seeds), &state);\n \n // Compute log_prob(x) - Gaussian target distribution\n float log_prob_x = 0.0f;\n for (int d = 0; d < dim; d++) {\n float diff = (x[batch_idx * dim + d] - mu[d]) / sigma[d];\n log_prob_x += diff * diff;\n }\n log_prob_x = -0.5f * log_prob_x;\n \n // Generate proposal and compute log_prob(proposal)\n float log_prob_proposal = 0.0f;\n for (int d = 0; d < dim; d++) {\n float noise = curand_normal(&state);\n float proposal_d = x[batch_idx * dim + d] + step_size * noise;\n float diff = (proposal_d - mu[d]) / sigma[d];\n log_prob_proposal += diff * diff;\n x_new[batch_idx * dim + d] = proposal_d;\n }\n log_prob_proposal = -0.5f * log_prob_proposal;\n \n // Compute acceptance ratio\n float log_alpha = log_prob_proposal - log_prob_x;\n \n // Generate uniform random number and compute log_u\n float u = curand_uniform(&state);\n u = fmaxf(u, 1e-10f); // clamp to avoid log(0)\n float log_u = logf(u);\n \n // Accept or reject\n bool accept = log_u < log_alpha;\n accepted[batch_idx] = accept;\n \n // If rejected, copy x to x_new\n if (!accept) {\n for (int d = 0; d < dim; d++) {\n x_new[batch_idx * dim + d] = x[batch_idx * dim + d];\n }\n }\n}\n\nstd::tuple<torch::Tensor, torch::Tensor> mcmc_step_cuda(\n torch::Tensor x, torch::Tensor mu, torch::Tensor sigma, float step_size) {\n int batch_size = x.size(0);\n int dim = x.size(1);\n \n auto x_new = torch::empty_like(x);\n auto accepted = torch::empty({batch_size}, torch::TensorOptions().dtype(torch::kBool).device(x.device()));\n \n int threads = 256;\n int blocks = (batch_size + threads - 1) / threads;\n \n // Get PyTorch's RNG state\n at::PhiloxCudaState rng_state = at::cuda::philox::state_from(\n at::detail::getDefaultGenerator().get<at::CUDAGeneratorImpl>());\n \n mcmc_step_kernel<<<blocks, threads>>>(\n x.data_ptr<float>(),\n mu.data_ptr<float>(),\n sigma.data_ptr<float>(),\n x_new.data_ptr<float>(),\n accepted.data_ptr<bool>(),\n step_size,\n batch_size,\n dim,\n rng_state\n );\n \n return std::make_tuple(x_new, accepted);\n}\n''',\n functions=['mcmc_step_cuda'],\n extra_cuda_cflags=['-O3', '-use_fast_math'],\n verbose=False\n)\n\nclass ModelNew(nn.Module):\n def __init__(self, dim, step_size=0.1):\n super().__init__()\n self.dim = dim\n self.step_size = step_size\n self.register_buffer(\"mu\", torch.zeros(dim))\n self.register_buffer(\"sigma\", torch.ones(dim))\n\n def forward(self, x: torch.Tensor) -> tuple:\n return mcmc_cuda.mcmc_step_cuda(x, self.mu, self.sigma, self.step_size)"
}
result ← compile_kernel (fail)
failcompile_kernel
compile_kernel FAILED: RuntimeError.
RuntimeError: Error building extension 'mcmc_cuda_fused': [1/3] /opt/conda/bin/x86_64-conda-linux-gnu-c++ -MMD -MF main.o.d -DTORCH_EXTENSION_NAME=mcmc_cuda_fused -DTORCH_API_INCLUDE_EXTENSION_H -isystem /scratch/abaner/KernelBench/.venv/lib/python3.10/site-packages/torch/include -isystem /scratch/abaner/KernelBench/.venv/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -isystem /usr/local/cuda/include -isystem /opt/conda/include/python3.10 -fPIC -std=c++17 -c /scratch/abaner/KernelBench/runs/pop_l123_all_gpt/popcorn/FW-GLM-5-1/level_2_problem_9_cache/k_0716895e647f/mcmc_cuda_fused/main.cpp -o main.o
[2/3] /usr/local/cuda/bin/nvcc -MD -MF cuda.cuda.o.d -ccbin /opt/conda/bin/x86_64-conda-linux-gnu-cc -DTORCH_EXTENSION_NAME=mcmc_cuda_fused -DTORCH_API_INCLUDE_EXTENSION_H -isystem /scratch/abaner/KernelBench/.venv/lib/python3.10/site-packages/torch/include -isystem /scratch/abaner/KernelBench/.venv/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -isystem /usr/local/cuda/include -isystem /opt/conda/include/python3.10 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_90,code=compute_90 -gencode=arch=compute_90,code=sm_90 --compiler-options '-fPIC' -O3 -use_fast_math -std=c++17 -c /scratch/abaner/KernelBench/runs/pop_l123_all_gpt/popcorn/FW-GLM-5-1/level_2_problem_9_cache/k_0716895e647f/mcmc_cuda_fused/cuda.cu -o cuda.cuda.o
FAILED: [code=2] cuda.cuda.o
/usr/local/cuda/bin/nvcc -MD -MF cuda.cuda.o.d -ccbin /opt/conda/bin/x86_64-conda-linux-gnu-cc -DTORCH_EXTENSION_NAME=mcmc_cuda_fused -DTORCH_API_INCLUDE_EXTENSION_H -isystem /scratch/abaner/KernelBench/.venv/lib/python3.10/site-packages/torch/include -isystem /scratch/abaner/KernelBench/.venv/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -isystem /usr/local/cuda/include -isystem /opt/conda/include/python3.10 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_90,code=compute_90 -gencode=arch=compute_90,code=sm_90 --compiler-options '-fPIC' -O3 -use_fast_math -std=c++17 -c /scratch/abaner/KernelBench/runs/pop_l123_all_gpt/popcorn/FW-GLM-5-1/level_2_problem_9_cache/k_0716895e647f/mcmc_cuda_fused/cuda.cu -o cuda.cuda.o
nvcc warning : incompatible redefinition for option 'compiler-bindir', the last value of this option was used
/scratch/abaner/KernelBench/runs/pop_l123_all_gpt/popcorn/FW-GLM-5-1/level_2_problem_9_cache/k_0716895e647f/mcmc_cuda_fused/cuda.cu(26): error: name followed by "::" must be a class or namespace name
auto seeds = at::cuda::philox::unpack(rng_state);
^
/scratch/abaner/KernelBench/runs/pop_l123_all_gpt/popcorn/FW-GLM-5-1/level_2_problem_9_cache/k_0716895e647f/mcmc_cuda_fused/cuda.cu(28): error: no instance of overloaded function "std::get" matches the argument list
argument types are: (<error-type>)
curand_init(std::get<0>(seeds), batch_idx, std::get<1>(seeds), &state);
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/variant(1180): note #3323-D: substituting explicit template arguments "<<expression>>" for function template "std::get<_Tp,_Types...>(const std::variant<_Types...> &&)" failed
get(const variant<_Types...>&& __v)
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/variant(1170): note #3323-D: substituting explicit template arguments "<<expression>>" for function template "std::get<_Tp,_Types...>(const std::variant<_Types...> &)" failed
get(const variant<_Types...>& __v)
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/variant(1160): note #3323-D: substituting explicit template arguments "<<expression>>" for function template "std::get<_Tp,_Types...>(std::variant<_Types...> &&)" failed
get(variant<_Types...>&& __v)
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/variant(1150): note #3323-D: substituting explicit template arguments "<<expression>>" for function template "std::get<_Tp,_Types...>(std::variant<_Types...> &)" failed
get(variant<_Types...>& __v)
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/variant(1745): note #3327-D: candidate function template "std::get<_Np,_Types...>(const std::variant<_Types...> &&)" failed deduction
get(const variant<_Types...>&& __v)
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/variant(1734): note #3327-D: candidate function template "std::get<_Np,_Types...>(const std::variant<_Types...> &)" failed deduction
get(const variant<_Types...>& __v)
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/variant(1723): note #3327-D: candidate function template "std::get<_Np,_Types...>(std::variant<_Types...> &&)" failed deduction
get(variant<_Types...>&& __v)
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/variant(1712): note #3327-D: candidate function template "std::get<_Np,_Types...>(std::variant<_Types...> &)" failed deduction
get(variant<_Types...>& __v)
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/tuple(2515): note #3323-D: substituting explicit template arguments "<<expression>>" for function template "std::get<_Tp,_Types...>(const std::tuple<_Types...> &&) noexcept" failed
get(const tuple<_Types...>&& __t) noexcept
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/tuple(2503): note #3323-D: substituting explicit template arguments "<<expression>>" for function template "std::get<_Tp,_Types...>(const std::tuple<_Types...> &) noexcept" failed
get(const tuple<_Types...>& __t) noexcept
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/tuple(2492): note #3323-D: substituting explicit template arguments "<<expression>>" for function template "std::get<_Tp,_Types...>(std::tuple<_Types...> &&) noexcept" failed
get(tuple<_Types...>&& __t) noexcept
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/tuple(2481): note #3323-D: substituting explicit template arguments "<<expression>>" for function template "std::get<_Tp,_Types...>(std::tuple<_Types...> &) noexcept" failed
get(tuple<_Types...>& __t) noexcept
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/tuple(2474): note #3327-D: candidate function template "std::get<__i,_Elements...>(const std::tuple<_Elements...> &)" failed deduction
get(const tuple<_Elements...>&) = delete;
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/bits/stl_pair.h(1307): note #3323-D: substituting explicit template arguments "<<expression>>" for function template "std::get(const std::pair<_Up, _Tp> &&) noexcept" failed
get(const pair<_Up, _Tp>&& __p) noexcept
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/bits/stl_pair.h(1302): note #3323-D: substituting explicit template arguments "<<expression>>" for function template "std::get(std::pair<_Up, _Tp> &&) noexcept" failed
get(pair<_Up, _Tp>&& __p) noexcept
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/bits/stl_pair.h(1297): note #3323-D: substituting explicit template arguments "<<expression>>" for function template "std::get(const std::pair<_Up, _Tp> &) noexcept" failed
get(const pair<_Up, _Tp>& __p) noexcept
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/bits/stl_pair.h(1292): note #3323-D: substituting explicit template arguments "<<expression>>" for function template "std::get(std::pair<_Up, _Tp> &) noexcept" failed
get(pair<_Up, _Tp>& __p) noexcept
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/bits/stl_pair.h(1287): note #3323-D: substituting explicit template arguments "<<expression>>" for function template "std::get(const std::pair<_Tp, _Up> &&) noexcept" failed
get(const pair<_Tp, _Up>&& __p) noexcept
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/bits/stl_pair.h(1282): note #3323-D: substituting explicit template arguments "<<expression>>" for function template "std::get(std::pair<_Tp, _Up> &&) noexcept" failed
get(pair<_Tp, _Up>&& __p) noexcept
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/bits/stl_pair.h(1277): note #3323-D: substituting explicit template arguments "<<expression>>" for function template "std::get(const std::pair<_Tp, _Up> &) noexcept" failed
get(const pair<_Tp, _Up>& __p) noexcept
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/bits/stl_pair.h(1272): note #3323-D: substituting explicit template arguments "<<expression>>" for function template "std::get(std::pair<_Tp, _Up> &) noexcept" failed
get(pair<_Tp, _Up>& __p) noexcept
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/array(417): note #3327-D: candidate function template "std::get<_Int,_Tp,_Nm>(const std::array<_Tp, _Nm> &&) noexcept" failed deduction
get(const array<_Tp, _Nm>&& __arr) noexcept
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/array(408): note #3327-D: candidate function template "std::get<_Int,_Tp,_Nm>(const std::array<_Tp, _Nm> &) noexcept" failed deduction
get(const array<_Tp, _Nm>& __arr) noexcept
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/array(399): note #3327-D: candidate function template "std::get<_Int,_Tp,_Nm>(std::array<_Tp, _Nm> &&) noexcept" failed deduction
get(array<_Tp, _Nm>&& __arr) noexcept
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/array(390): note #3327-D: candidate function template "std::get<_Int,_Tp,_Nm>(std::array<_Tp, _Nm> &) noexcept" failed deduction
get(array<_Tp, _Nm>& __arr) noexcept
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/tuple(2464): note #3327-D: candidate function template "std::get<__i,_Elements...>(const std::tuple<_Elements...> &&) noexcept" failed deduction
get(const tuple<_Elements...>&& __t) noexcept
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/tuple(2455): note #3327-D: candidate function template "std::get<__i,_Elements...>(std::tuple<_Elements...> &&) noexcept" failed deduction
get(tuple<_Elements...>&& __t) noexcept
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/tuple(2449): note #3327-D: candidate function template "std::get<__i,_Elements...>(const std::tuple<_Elements...> &) noexcept" failed deduction
get(const tuple<_Elements...>& __t) noexcept
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/tuple(2443): note #3327-D: candidate function template "std::get<__i,_Elements...>(std::tuple<_Elements...> &) noexcept" failed deduction
get(tuple<_Elements...>& __t) noexcept
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/bits/stl_pair.h(1265): note #3327-D: candidate function template "std::get<_Int,_Tp1,_Tp2>(const std::pair<_Tp1, _Tp2> &&) noexcept" failed deduction
get(const pair<_Tp1, _Tp2>&& __in) noexcept
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/bits/stl_pair.h(1260): note #3327-D: candidate function template "std::get<_Int,_Tp1,_Tp2>(const std::pair<_Tp1, _Tp2> &) noexcept" failed deduction
get(const pair<_Tp1, _Tp2>& __in) noexcept
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/bits/stl_pair.h(1255): note #3327-D: candidate function template "std::get<_Int,_Tp1,_Tp2>(std::pair<_Tp1, _Tp2> &&) noexcept" failed deduction
get(pair<_Tp1, _Tp2>&& __in) noexcept
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/bits/stl_pair.h(1250): note #3327-D: candidate function template "std::get<_Int,_Tp1,_Tp2>(std::pair<_Tp1, _Tp2> &) noexcept" failed deduction
get(pair<_Tp1, _Tp2>& __in) noexcept
^
/scratch/abaner/KernelBench/runs/pop_l123_all_gpt/popcorn/FW-GLM-5-1/level_2_problem_9_cache/k_0716895e647f/mcmc_cuda_fused/cuda.cu(28): error: no instance of overloaded function "std::get" matches the argument list
argument types are: (<error-type>)
curand_init(std::get<0>(seeds), batch_idx, std::get<1>(seeds), &state);
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/variant(1180): note #3323-D: substituting explicit template arguments "<<expression>>" for function template "std::get<_Tp,_Types...>(const std::variant<_Types...> &&)" failed
get(const variant<_Types...>&& __v)
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/variant(1170): note #3323-D: substituting explicit template arguments "<<expression>>" for function template "std::get<_Tp,_Types...>(const std::variant<_Types...> &)" failed
get(const variant<_Types...>& __v)
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/variant(1160): note #3323-D: substituting explicit template arguments "<<expression>>" for function template "std::get<_Tp,_Types...>(std::variant<_Types...> &&)" failed
get(variant<_Types...>&& __v)
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/variant(1150): note #3323-D: substituting explicit template arguments "<<expression>>" for function template "std::get<_Tp,_Types...>(std::variant<_Types...> &)" failed
get(variant<_Types...>& __v)
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/variant(1745): note #3327-D: candidate function template "std::get<_Np,_Types...>(const std::variant<_Types...> &&)" failed deduction
get(const variant<_Types...>&& __v)
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/variant(1734): note #3327-D: candidate function template "std::get<_Np,_Types...>(const std::variant<_Types...> &)" failed deduction
get(const variant<_Types...>& __v)
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/variant(1723): note #3327-D: candidate function template "std::get<_Np,_Types...>(std::variant<_Types...> &&)" failed deduction
get(variant<_Types...>&& __v)
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/variant(1712): note #3327-D: candidate function template "std::get<_Np,_Types...>(std::variant<_Types...> &)" failed deduction
get(variant<_Types...>& __v)
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/tuple(2515): note #3323-D: substituting explicit template arguments "<<expression>>" for function template "std::get<_Tp,_Types...>(const std::tuple<_Types...> &&) noexcept" failed
get(const tuple<_Types...>&& __t) noexcept
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/tuple(2503): note #3323-D: substituting explicit template arguments "<<expression>>" for function template "std::get<_Tp,_Types...>(const std::tuple<_Types...> &) noexcept" failed
get(const tuple<_Types...>& __t) noexcept
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/tuple(2492): note #3323-D: substituting explicit template arguments "<<expression>>" for function template "std::get<_Tp,_Types...>(std::tuple<_Types...> &&) noexcept" failed
get(tuple<_Types...>&& __t) noexcept
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/tuple(2481): note #3323-D: substituting explicit template arguments "<<expression>>" for function template "std::get<_Tp,_Types...>(std::tuple<_Types...> &) noexcept" failed
get(tuple<_Types...>& __t) noexcept
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/tuple(2474): note #3327-D: candidate function template "std::get<__i,_Elements...>(const std::tuple<_Elements...> &)" failed deduction
get(const tuple<_Elements...>&) = delete;
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/bits/stl_pair.h(1307): note #3323-D: substituting explicit template arguments "<<expression>>" for function template "std::get(const std::pair<_Up, _Tp> &&) noexcept" failed
get(const pair<_Up, _Tp>&& __p) noexcept
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/bits/stl_pair.h(1302): note #3323-D: substituting explicit template arguments "<<expression>>" for function template "std::get(std::pair<_Up, _Tp> &&) noexcept" failed
get(pair<_Up, _Tp>&& __p) noexcept
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/bits/stl_pair.h(1297): note #3323-D: substituting explicit template arguments "<<expression>>" for function template "std::get(const std::pair<_Up, _Tp> &) noexcept" failed
get(const pair<_Up, _Tp>& __p) noexcept
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/bits/stl_pair.h(1292): note #3323-D: substituting explicit template arguments "<<expression>>" for function template "std::get(std::pair<_Up, _Tp> &) noexcept" failed
get(pair<_Up, _Tp>& __p) noexcept
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/bits/stl_pair.h(1287): note #3323-D: substituting explicit template arguments "<<expression>>" for function template "std::get(const std::pair<_Tp, _Up> &&) noexcept" failed
get(const pair<_Tp, _Up>&& __p) noexcept
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/bits/stl_pair.h(1282): note #3323-D: substituting explicit template arguments "<<expression>>" for function template "std::get(std::pair<_Tp, _Up> &&) noexcept" failed
get(pair<_Tp, _Up>&& __p) noexcept
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/bits/stl_pair.h(1277): note #3323-D: substituting explicit template arguments "<<expression>>" for function template "std::get(const std::pair<_Tp, _Up> &) noexcept" failed
get(const pair<_Tp, _Up>& __p) noexcept
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/bits/stl_pair.h(1272): note #3323-D: substituting explicit template arguments "<<expression>>" for function template "std::get(std::pair<_Tp, _Up> &) noexcept" failed
get(pair<_Tp, _Up>& __p) noexcept
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/array(417): note #3327-D: candidate function template "std::get<_Int,_Tp,_Nm>(const std::array<_Tp, _Nm> &&) noexcept" failed deduction
get(const array<_Tp, _Nm>&& __arr) noexcept
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/array(408): note #3327-D: candidate function template "std::get<_Int,_Tp,_Nm>(const std::array<_Tp, _Nm> &) noexcept" failed deduction
get(const array<_Tp, _Nm>& __arr) noexcept
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/array(399): note #3327-D: candidate function template "std::get<_Int,_Tp,_Nm>(std::array<_Tp, _Nm> &&) noexcept" failed deduction
get(array<_Tp, _Nm>&& __arr) noexcept
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/array(390): note #3327-D: candidate function template "std::get<_Int,_Tp,_Nm>(std::array<_Tp, _Nm> &) noexcept" failed deduction
get(array<_Tp, _Nm>& __arr) noexcept
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/tuple(2464): note #3327-D: candidate function template "std::get<__i,_Elements...>(const std::tuple<_Elements...> &&) noexcept" failed deduction
get(const tuple<_Elements...>&& __t) noexcept
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/tuple(2455): note #3327-D: candidate function template "std::get<__i,_Elements...>(std::tuple<_Elements...> &&) noexcept" failed deduction
get(tuple<_Elements...>&& __t) noexcept
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/tuple(2449): note #3327-D: candidate function template "std::get<__i,_Elements...>(const std::tuple<_Elements...> &) noexcept" failed deduction
get(const tuple<_Elements...>& __t) noexcept
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/tuple(2443): note #3327-D: candidate function template "std::get<__i,_Elements...>(std::tuple<_Elements...> &) noexcept" failed deduction
get(tuple<_Elements...>& __t) noexcept
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/bits/stl_pair.h(1265): note #3327-D: candidate function template "std::get<_Int,_Tp1,_Tp2>(const std::pair<_Tp1, _Tp2> &&) noexcept" failed deduction
get(const pair<_Tp1, _Tp2>&& __in) noexcept
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/bits/stl_pair.h(1260): note #3327-D: candidate function template "std::get<_Int,_Tp1,_Tp2>(const std::pair<_Tp1, _Tp2> &) noexcept" failed deduction
get(const pair<_Tp1, _Tp2>& __in) noexcept
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/bits/stl_pair.h(1255): note #3327-D: candidate function template "std::get<_Int,_Tp1,_Tp2>(std::pair<_Tp1, _Tp2> &&) noexcept" failed deduction
get(pair<_Tp1, _Tp2>&& __in) noexcept
^
/opt/conda/lib/gcc/x86_64-conda-linux-gnu/14.2.0/include/c++/bits/stl_pair.h(1250): note #3327-D: candidate function template "std::get<_Int,_Tp1,_Tp2>(std::pair<_Tp1, _Tp2> &) noexcept" failed deduction
get(pair<_Tp1, _Tp2>& __in) noexcept
^
/scratch/abaner/KernelBench/runs/pop_l123_all_gpt/popcorn/FW-GLM-5-1/level_2_problem_9_cache/k_0716895e647f/mcmc_cuda_fused/cuda.cu(81): error: name followed by "::" must be a class or namespace name
at::PhiloxCudaState rng_state = at::cuda::philox::state_from(
^
/scratch/abaner/KernelBench/runs/pop_l123_all_gpt/popcorn/FW-GLM-5-1/level_2_problem_9_cache/k_0716895e647f/mcmc_cuda_fused/cuda.cu(82): error: namespace "at::detail" has no member "getDefaultGenerator"
at::detail::getDefaultGenerator().get<at::CUDAGeneratorImpl>());
^
/scratch/abaner/KernelBench/runs/pop_l123_all_gpt/popcorn/FW-GLM-5-1/level_2_problem_9_cache/k_0716895e647f/mcmc_cuda_fused/cuda.cu(82): error: type name is not allowed
at::detail::getDefaultGenerator().get<at::CUDAGeneratorImpl>());
^
/scratch/abaner/KernelBench/runs/pop_l123_all_gpt/popcorn/FW-GLM-5-1/level_2_problem_9_cache/k_0716895e647f/mcmc_cuda_fused/cuda.cu(82): error: expected an expression
at::detail::getDefaultGenerator().get<at::CUDAGeneratorImpl>());
^
7 errors detected in the compilation of "/scratch/abaner/KernelBench/runs/pop_l123_all_gpt/popcorn/FW-GLM-5-1/level_2_problem_9_cache/k_0716895e647f/mcmc_cuda_fused/cuda.cu".
ninja: build stopped: subcommand failed.