Skip to content

Commit

Permalink
skip logical_not index tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alifahrri committed Nov 12, 2023
1 parent 5072ce3 commit 727047a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/install_llvm_spirv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ if [[ -z "${LLVM_VERSION}" ]]; then
LLVM_VERSION="15"
else
LLVM_VERSION="${LLVM_VERSION}"
echo "set LLVM_VERSION from env"
echo "set LLVM_VERSION from env: ${LLVM_VERSION}"
fi

if [[ -z "${LLVM_SPV_VERSION}" ]]; then
LLVM_SPV_VERSION="v15.0.0"
else
LLVM_SPV_VERSION="${LLVM_SPV_VERSION}"
echo "set LLVM_SPV_VERSION from env"
echo "set LLVM_SPV_VERSION from env: ${LLVM_SPV_VERSION}"
fi

echo "using LLVM_VERSION=${LLVM_VERSION}"
Expand All @@ -25,7 +25,7 @@ else
git clone https://github.com/KhronosGroup/SPIRV-LLVM-Translator
fi
cd SPIRV-LLVM-Translator
git checkout ${LLVM_SPV_VERSION}
git fetch && git checkout ${LLVM_SPV_VERSION}

mkdir -p build
cd build
Expand Down
7 changes: 7 additions & 0 deletions tests/opencl/index/logical_not.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ namespace meta = nm::meta;

kernel void test_logical_not(global bool* out_ptr, global bool* inp_ptr, const unsigned long out_size, const unsigned long inp_size)
{
// crashed on llvm-spirv 15 when compiling kernel
// llvm-spirv: /home/runner/work/nmtools/nmtools/SPIRV-LLVM-Translator/lib/SPIRV/libSPIRV/SPIRVInstruction.h:1910: virtual void SPIRV::SPIRVCompositeExtractBase::validate() const: Assertion `getValueType(Composite)->isTypeArray() || getValueType(Composite)->isTypeStruct() || getValueType(Composite)->isTypeVector()' failed.
// 2023-11-12T15:48:07.0290468Z PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
// 2023-11-12T15:48:07.0291665Z Stack dump:
// 2023-11-12T15:48:07.0294036Z 0. Program arguments: llvm-spirv -spirv-max-version=1.0 -o /home/runner/work/nmtools/nmtools/tests/opencl/index/nm_cl_test_logical_not.spv /home/runner/work/nmtools/nmtools/tests/opencl/index/nm_cl_test_logical_not.bc
#if 0
if (get_global_id(0)==0) {
auto output = view::mutable_ref(out_ptr,out_size);
auto input = ix::ref_ptr(inp_ptr,inp_size);
Expand All @@ -21,6 +27,7 @@ kernel void test_logical_not(global bool* out_ptr, global bool* inp_ptr, const u
nm::at(output,i) = nm::at(result,i);
}
}
#endif
}
#else

Expand Down

0 comments on commit 727047a

Please sign in to comment.