-
Notifications
You must be signed in to change notification settings - Fork 769
[CUDA] Unexpected Failing and Passing Tests #1603
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
These $ env LLVM_BIN_PATH=/data/user/fwyzard/sycl/minimal/bin/ python /data/user/fwyzard/sycl/llvm/sycl/tools//abi_check.py --mode check_symbols --reference /data/user/fwyzard/sycl/llvm/sycl/test/abi/sycl_symbols_linux.dump /data/user/fwyzard/sycl/minimal/lib//libsycl.so
/data/user/fwyzard/sycl/minimal/bin/llvm-readobj: error: '/data/user/fwyzard/sycl/minimal/lib//libsycl.so': No such file or directory
Traceback (most recent call last):
File "/data/user/fwyzard/sycl/llvm/sycl/tools//abi_check.py", line 112, in <module>
main()
File "/data/user/fwyzard/sycl/llvm/sycl/tools//abi_check.py", line 106, in main
check_symbols(args.reference, args.target_library)
File "/data/user/fwyzard/sycl/llvm/sycl/tools//abi_check.py", line 74, in check_symbols
"-t", target_path])
File "/usr/lib64/python2.7/subprocess.py", line 223, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['/data/user/fwyzard/sycl/minimal/bin/llvm-readobj', '-t', '/data/user/fwyzard/sycl/minimal/lib//libsycl.so']' returned non-zero exit status 1 and $ not env LLVM_BIN_PATH=/data/user/fwyzard/sycl/minimal/bin/ python /data/user/fwyzard/sycl/llvm/sycl/tools//abi_check.py --mode check_symbols --reference /data/user/fwyzard/sycl/llvm/sycl/test/tools/abi_check_negative.dump /data/user/fwyzard/sycl/minimal/lib//libsycl.so | FileCheck /data/user/fwyzard/sycl/llvm/sycl/test/tools/abi_check_negative.dump
/data/user/fwyzard/sycl/minimal/bin/llvm-readobj: error: '/data/user/fwyzard/sycl/minimal/lib//libsycl.so': No such file or directory
Traceback (most recent call last):
File "/data/user/fwyzard/sycl/llvm/sycl/tools//abi_check.py", line 112, in <module>
main()
File "/data/user/fwyzard/sycl/llvm/sycl/tools//abi_check.py", line 106, in main
check_symbols(args.reference, args.target_library)
File "/data/user/fwyzard/sycl/llvm/sycl/tools//abi_check.py", line 74, in check_symbols
"-t", target_path])
File "/usr/lib64/python2.7/subprocess.py", line 223, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['/data/user/fwyzard/sycl/minimal/bin/llvm-readobj', '-t', '/data/user/fwyzard/sycl/minimal/lib//libsycl.so']' returned non-zero exit status 1
FileCheck error: '<stdin>' is empty.
FileCheck command line: FileCheck /data/user/fwyzard/sycl/llvm/sycl/test/tools/abi_check_negative.dump are due to the test looking for I think the fix is either to change the tests to use |
Both approaches fix the two tests. |
All the
I'm not sure why my build does not have the files
Would it be a reasonable alternative to link directly with For example, patches like this diff --git a/sycl/test/devicelib/c99_complex_math_fp64_test.cpp b/sycl/test/devicelib/c99_complex_math_fp64_test.cpp
index c039025b111..8f3aab174b0 100644
--- a/sycl/test/devicelib/c99_complex_math_fp64_test.cpp
+++ b/sycl/test/devicelib/c99_complex_math_fp64_test.cpp
@@ -1,6 +1,5 @@
// UNSUPPORTED: windows
-// RUN: %clangxx -fsycl -c %s -o %t.o
-// RUN: %clangxx -fsycl %t.o %sycl_libs_dir/libsycl-complex-fp64.o -o %t.out
+// RUN: %clangxx -fsycl %s -lsycl -o %t.out
#include <CL/sycl.hpp>
#include <cassert>
#include <complex.h> seem to fix all the |
I fixed the build configuration to cmake \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DLLVM_ENABLE_ASSERTIONS=ON\
-DLLVM_ENABLE_EH=ON \
-DLLVM_ENABLE_PIC=ON \
-DLLVM_ENABLE_RTTI=ON \
-DLLVM_TARGETS_TO_BUILD="X86;NVPTX" \
-DLLVM_EXTERNAL_PROJECTS="sycl;llvm-spirv;opencl-aot;xpti;libdevice" \
-DLLVM_EXTERNAL_SYCL_SOURCE_DIR=$SYCL_BASE/llvm/sycl \
-DLLVM_EXTERNAL_LLVM_SPIRV_SOURCE_DIR=$SYCL_BASE/llvm/llvm-spirv \
-DLLVM_EXTERNAL_XPTI_SOURCE_DIR=$SYCL_BASE/llvm/xpti \
-DLLVM_EXTERNAL_LIBDEVICE_SOURCE_DIR=$SYCL_BASE/llvm/libdevice \
-DLLVM_ENABLE_PROJECTS='clang;llvm-spirv;sycl;opencl-aot;xpti;libdevice;libclc' \
-DLIBCLC_TARGETS_TO_BUILD='nvptx64--;nvptx64--nvidiacl' \
-DSYCL_BUILD_PI_CUDA=ON \
-DSYCL_ENABLE_WERROR=OFF \
-DSYCL_ENABLE_XPTI_TRACING=ON \
-DCMAKE_INSTALL_PREFIX=$SYCL_BASE/minimal/install \
-DSYCL_INCLUDE_TESTS=ON \
-DLLVM_ENABLE_DOXYGEN=OFF \
-DLLVM_ENABLE_SPHINX=OFF \
-DBUILD_SHARED_LIBS=OFF \
-DLLVM_BUILD_LLVM_DYLIB=OFF \
-DLLVM_LINK_LLVM_DYLIB=OFF \
-DLLVM_LIBDIR_SUFFIX=64 \
-DCUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda-10.1 \
-DCUDA_USE_STATIC_CUDA_RUNTIME=OFF \
$SYCL_BASE/llvm/llvm Now
|
There are no unexpected |
On a local build of the latest code base (tag: 20200429), running
make -j16 check-sycl-cuda
, I am getting both unexpected fails (under abi/, devicelib/ and tools/) and unexpected passes (under usm/).Machine configuration:
Build configuration
Test configuration
Test summary
The full log is attached: check-sycl-cuda-log.txt.
The text was updated successfully, but these errors were encountered: