anutosh491 wrote:

The cuda tests for the negation case should now work (not segfault because 
libcudart.so is not found but simply get skipped).
```
1: Test command: 
/build/anutosh491/CppInterOp/build1/unittests/CppInterOp/CppInterOpTests/unittests/bin/Release/CppInterOpTests
1: Working Directory: /build/anutosh491/CppInterOp/build1/unittests/CppInterOp
1: Environment variables: 
1:  CPLUS_INCLUDE_PATH=/build/anutosh491/CppInterOp/build1/etc
1: Test timeout computed to be: 2400
1: Running main() from 
/build/anutosh491/CppInterOp/build1/unittests/googletest-prefix/src/googletest/googletest/src/gtest_main.cc
1: [==========] Running 3 tests from 1 test suite.
1: [----------] Global test environment set-up.
1: [----------] 3 tests from CUDATest
1: [ RUN      ] CUDATest.Sanity
1: Failed load libcudart.so runtime:libcudart1.so: cannot open shared object 
file: No such file or directory
1: Interpreter creation failed
1: /build/anutosh491/CppInterOp/unittests/CppInterOp/CUDATest.cpp:59: Skipped
1: Skipping CUDA tests as CUDA SDK not found
1: 
1: [  SKIPPED ] CUDATest.Sanity (1078 ms)
1: [ RUN      ] CUDATest.CUDAH
1: /build/anutosh491/CppInterOp/unittests/CppInterOp/CUDATest.cpp:68: Skipped
1: Skipping CUDA tests as CUDA SDK not found
1: 
1: [  SKIPPED ] CUDATest.CUDAH (0 ms)
1: [ RUN      ] CUDATest.CUDARuntime
1: /build/anutosh491/CppInterOp/unittests/CppInterOp/CUDATest.cpp:80: Skipped
1: Skipping CUDA tests as CUDA runtime not found
1: 
1: [  SKIPPED ] CUDATest.CUDARuntime (0 ms)
1: [----------] 3 tests from CUDATest (1078 ms total)
1: 
1: [----------] Global test environment tear-down
1: [==========] 3 tests from 1 test suite ran. (1078 ms total)
1: [  PASSED  ] 0 tests.
1: [  SKIPPED ] 3 tests, listed below:
1: [  SKIPPED ] CUDATest.Sanity
1: [  SKIPPED ] CUDATest.CUDAH
1: [  SKIPPED ] CUDATest.CUDARuntime
1/1 Test #1: cppinterop-CppInterOpTests .......   Passed    1.10 sec

```

And they were anyways working for systems having cuda support 
```
1: Test command: 
/build/anutosh491/CppInterOp/build1/unittests/CppInterOp/CppInterOpTests/unittests/bin/Release/CppInterOpTests
1: Working Directory: /build/anutosh491/CppInterOp/build1/unittests/CppInterOp
1: Environment variables: 
1:  CPLUS_INCLUDE_PATH=/build/anutosh491/CppInterOp/build1/etc
1: Test timeout computed to be: 2400
1: Running main() from 
/build/anutosh491/CppInterOp/build1/unittests/googletest-prefix/src/googletest/googletest/src/gtest_main.cc
1: [==========] Running 3 tests from 1 test suite.
1: [----------] Global test environment set-up.
1: [----------] 3 tests from CUDATest
1: [ RUN      ] CUDATest.Sanity
1: [       OK ] CUDATest.Sanity (2177 ms)
1: [ RUN      ] CUDATest.CUDAH
1: [       OK ] CUDATest.CUDAH (1016 ms)
1: [ RUN      ] CUDATest.CUDARuntime
1: In file included from <<< inputs >>>:1:
1: input_line_1:1:1: warning: expression result unused [-Wunused-value]
1:     1 | (bool)cudaGetLastError()
1:       | ^     ~~~~~~~~~~~~~~~~~~
1: /build/anutosh491/CppInterOp/unittests/CppInterOp/CUDATest.cpp:80: Skipped
1: Skipping CUDA tests as CUDA runtime not found
1: 
1: [  SKIPPED ] CUDATest.CUDARuntime (1068 ms)
1: [----------] 3 tests from CUDATest (4263 ms total)
1: 
1: [----------] Global test environment tear-down
1: [==========] 3 tests from 1 test suite ran. (4263 ms total)
1: [  PASSED  ] 2 tests.
1: [  SKIPPED ] 1 test, listed below:
1: [  SKIPPED ] CUDATest.CUDARuntime
1/1 Test #1: cppinterop-CppInterOpTests .......   Passed    4.32 sec
```

https://github.com/llvm/llvm-project/pull/138091
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to