fixed segfault in tests/launch-*.ispc. nativeVectoWidth in avx-i64x4 was set to 4. Fixed
This commit is contained in:
2
ispc.cpp
2
ispc.cpp
@@ -448,7 +448,7 @@ Target::Target(const char *arch, const char *cpu, const char *isa, bool pic) :
|
||||
}
|
||||
else if (!strcasecmp(isa, "avx-i64x4") ) {
|
||||
this->m_isa = Target::AVX;
|
||||
this->m_nativeVectorWidth = 4;
|
||||
this->m_nativeVectorWidth = 8; /* native vector width in terms of floats */
|
||||
this->m_vectorWidth = 4;
|
||||
this->m_attributes = "+avx,+popcnt,+cmov";
|
||||
this->m_maskingIsFree = false;
|
||||
|
||||
@@ -75,7 +75,7 @@ if not os.path.exists(ispc_exe):
|
||||
sys.stderr.write("Fatal error: missing ispc compiler: %s\n" % ispc_exe)
|
||||
sys.exit()
|
||||
|
||||
ispc_exe += " -g " + options.ispc_flags
|
||||
ispc_exe += " " + options.ispc_flags
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.stdout.write("ispc compiler: %s\n" % ispc_exe)
|
||||
|
||||
Reference in New Issue
Block a user