From 47cc470bf69998097574962e950c61c630da5913 Mon Sep 17 00:00:00 2001 From: Evghenii Date: Tue, 29 Oct 2013 16:07:12 +0100 Subject: [PATCH] change nativeVectorWidth from 1 -> 32 for nvptx64 --- ispc.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/ispc.cpp b/ispc.cpp index 8080ca6d..b83f33a0 100644 --- a/ispc.cpp +++ b/ispc.cpp @@ -655,22 +655,18 @@ Target::Target(const char *arch, const char *cpu, const char *isa, bool pic, boo this->m_maskBitCount = 32; } #endif - else if (!strcasecmp(isa, "nvptx64")) { + else if (!strcasecmp(isa, "nvptx64")) + { this->m_isa = Target::NVPTX64; this->m_isPTX = true; - this->m_nativeVectorWidth = 1; + this->m_nativeVectorWidth = 32; this->m_vectorWidth = 1; this->m_attributes = "+sm_35"; -#if 1 this->m_hasHalf = false; this->m_maskingIsFree = true; this->m_maskBitCount = 1; this->m_hasTranscendentals = true; this->m_hasGather = this->m_hasScatter = false; -#else - this->m_maskingIsFree = false; - this->m_maskBitCount = 32; -#endif } else { Error(SourcePos(), "Target \"%s\" is unknown. Choices are: %s.",