https://bugs.freedesktop.org/show_bug.cgi?id=64600
--- Comment #14 from Peter Wu lekensteyn@gmail.com --- Created attachment 87536 --> https://bugs.freedesktop.org/attachment.cgi?id=87536&action=edit piglit test kernel with pyrit
The patches did avoid the crash, but the results are still invalid.
For convenience, I have added some test vectors and glue to the pyrit kernel. I don't know if such a complex testcase is acceptable for piglit, hence I am posting it here. Let me know if such a case is suitable for piglit and if it should be posted to the piglit list too.
The test passes with the POCL implementation but not with the R600 one.
Without the patches the output is: ## Test: Pyrit WPA2-PSK accelerator (/src/piglit/tests/cl/program/program-tester.c) ##
# Running on: # Platform: Default # Device: AMD BARTS # OpenCL version: 1.1 # OpenCL C version: 1.1 # Build options: -cl-std=CL1.1 Program has been built successfully
Running kernel test:
Using kernel opencl_pmk_kernel Setting kernel arguments... Running the kernel... cl-program-tester: /src/llvm/include/llvm/MC/MCRegisterInfo.h:65: unsigned int llvm::MCRegisterClass::getRegister(unsigned int) const: Assertion `i < getNumRegs() && "Register number out of range!"' failed. Stack dump: 0. Running pass 'Function Pass Manager' on module 'radeon'. 1. Running pass 'R600 Handle indirect addressing' on function '@opencl_pmk_kernel' Aborted (core dumped)
With branch tsellar/r600-private-mem-fixes, up to commit cf5d9a2: [..] Running the kernel... Validating results... Expecting 3201012614 (0xbecb9386) with tolerance 0, but got 844928435 (0x325c95b3) Error at uint[0] Argument 1: FAIL PIGLIT:subtest {'' : 'fail'}
Some or all of the tests FAILED
# Result: PIGLIT: {'result': 'fail' }