From c3966b6a8c24f4c64877d5a18335549d3af66d1a Mon Sep 17 00:00:00 2001 From: Ahmad Alawneh Date: Sat, 15 Feb 2025 02:47:41 +0300 Subject: Cuda12 (#94) * added support to cuda 12, by predicating texuture cache * format code --- src/cuda-sim/instructions.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/cuda-sim/instructions.cc') diff --git a/src/cuda-sim/instructions.cc b/src/cuda-sim/instructions.cc index 843bf0b..8bc19d3 100644 --- a/src/cuda-sim/instructions.cc +++ b/src/cuda-sim/instructions.cc @@ -6046,6 +6046,7 @@ void textureNormalizeOutput(const struct cudaChannelFormatDesc &desc, } void tex_impl(const ptx_instruction *pI, ptx_thread_info *thread) { +#if (CUDART_VERSION <= 1200) unsigned dimension = pI->dimension(); const operand_info &dst = pI->dst(); // the registers to which fetched texel will be placed @@ -6373,6 +6374,7 @@ void tex_impl(const ptx_instruction *pI, ptx_thread_info *thread) { } thread->set_vector_operand_values(dst, data1, data2, data3, data4); +#endif } void txq_impl(const ptx_instruction *pI, ptx_thread_info *thread) { -- cgit v1.3