change nativeVectorWidth from 1 -> 32 for nvptx64
This commit is contained in:
10
ispc.cpp
10
ispc.cpp
@@ -655,22 +655,18 @@ Target::Target(const char *arch, const char *cpu, const char *isa, bool pic, boo
|
|||||||
this->m_maskBitCount = 32;
|
this->m_maskBitCount = 32;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
else if (!strcasecmp(isa, "nvptx64")) {
|
else if (!strcasecmp(isa, "nvptx64"))
|
||||||
|
{
|
||||||
this->m_isa = Target::NVPTX64;
|
this->m_isa = Target::NVPTX64;
|
||||||
this->m_isPTX = true;
|
this->m_isPTX = true;
|
||||||
this->m_nativeVectorWidth = 1;
|
this->m_nativeVectorWidth = 32;
|
||||||
this->m_vectorWidth = 1;
|
this->m_vectorWidth = 1;
|
||||||
this->m_attributes = "+sm_35";
|
this->m_attributes = "+sm_35";
|
||||||
#if 1
|
|
||||||
this->m_hasHalf = false;
|
this->m_hasHalf = false;
|
||||||
this->m_maskingIsFree = true;
|
this->m_maskingIsFree = true;
|
||||||
this->m_maskBitCount = 1;
|
this->m_maskBitCount = 1;
|
||||||
this->m_hasTranscendentals = true;
|
this->m_hasTranscendentals = true;
|
||||||
this->m_hasGather = this->m_hasScatter = false;
|
this->m_hasGather = this->m_hasScatter = false;
|
||||||
#else
|
|
||||||
this->m_maskingIsFree = false;
|
|
||||||
this->m_maskBitCount = 32;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
Error(SourcePos(), "Target \"%s\" is unknown. Choices are: %s.",
|
Error(SourcePos(), "Target \"%s\" is unknown. Choices are: %s.",
|
||||||
|
|||||||
Reference in New Issue
Block a user