Simeon Ehrig
e7b0e22ae8
Add test cases for CUDA features.
...
- CUDA __constant__ memory
- CUDA global __device__ memory
- CUDA __host__ prefix
- CUDA kernel launch with arguments
- CUDA templated kernels
- CUDA shared memory with dynamic runtime
- CUDA Streams
- test if CUDA device is available
2018-06-25 08:29:07 +02:00
Axel Naumann
673a1d63a4
cling PR 233 ( #2038 )
...
Add llvm module pass to generate unique cuda module ctor/dtor names.
This llvm module pass address the follow problem. Every llvm module has a cuda ctor and dtor (if a cuda fatbinary exist), with at least a function call to register the fatbinary. The ctor/dtor can also include function calls to register global functions and variables at runtime, depending on user's code. The lazy compilation detects functions by the name. If the name (symbol) already exists it uses the existing translation. Otherwise it translates the function on first use (but it never translates twice). Without the module pass, Cling will always use the translation of the first module.
The testcase use the reflection of the gCling interpreter object. It takes two random modules and compare the symbols of the cuda module ctor and dtor.
Also add function, which change the symbol of the cuda module ctor and dtor to preprocessor compliant symbols.
2018-05-18 11:14:07 +02:00
Axel Naumann
855d7224ae
cling can now print lamda-dependent types!
2018-04-30 16:29:42 +02:00
Axel Naumann
e39e1baf94
Do not rely on value printer to side-#include <string>.
2018-04-30 16:29:42 +02:00
Vassil Vassilev
c2ce10091f
Fix the expected fully qualified type.
2018-04-21 16:14:23 +02:00
Vassil Vassilev
4a226ee47a
Desugar auto types allowing to print the full qualification of a type.
2018-04-19 17:59:08 +02:00
Vassil Vassilev
f70caf92b4
Check if targets exist and then add a dependency on them.
...
Fixes -Dclingtest=On; make check-cling.
2018-04-19 14:29:07 +02:00
Axel Naumann
febddd23bc
Update test to follow new output.
2018-04-17 13:59:31 +02:00
Simeon Ehrig
3b656d1d3f
add automatic load of libcudart.so at start of cling -xcuda
2018-03-23 18:29:07 +01:00
Simeon Ehrig
4f73d1b93d
reduce arguments at start of cling -xcling
...
the argument --cuda-host-only and the default c++ stardard will be set at start of cling -xcuda
2018-03-23 18:29:07 +01:00
Vassil Vassilev
c2bda52ba2
The test is expected to fail on cling standalone.
2018-03-11 17:14:05 +01:00
Vassil Vassilev
7b70052776
Add forgotten to commit protection and check clause.
...
This should have landed in 7554be9571.
2018-03-10 10:29:05 +01:00
Vassil Vassilev
01dbb6d9d5
Use a stable way to determine the address of printed objects.
...
Using unary operator address of (eg. MyClass m; &m) takes into account
overloaded operators which may not give us the precide address of the
allocated storage.
This patch teaches cling to use std::addressof instead.
2018-03-08 22:44:16 +01:00
Vassil Vassilev
6eca8bd693
Revert "Silence cling test error until after the break."
...
This reverts commit 16b0a0b8bb2aa4415a9a40138b70406f4c2b6c20.
The error seems to be fixed but we forgot to update the test.
2018-03-08 22:44:15 +01:00
Vassil Vassilev
e9c073dbd0
Remove outdated and commented cmake arg.
2018-02-20 13:44:05 +01:00
Vassil Vassilev
53c9768f20
Remove redundant dependency 'count'.
2018-02-20 13:44:05 +01:00
Axel Naumann
b302a6bcfe
Silence cling test error until after the break.
2017-12-21 10:48:27 +01:00
Axel Naumann
88edc07e65
Adjust after increased fp precision.
2017-12-05 15:40:37 +01:00
Axel Naumann
1ac9f65512
Update to new output format. Use CHECK-NEXT.
2017-12-05 15:40:37 +01:00
Axel Naumann
25849d68c4
Update ref to include <invalid memory address>
2017-12-05 15:40:37 +01:00
Axel Naumann
a662db9c4c
Adapt to new=old value printer: "1.000000" for a double 1 instead of "1".
...
Revert "Adapt to format changes in floating point value printing."
This reverts commit a15ef54fb4c5152eeff740cc1f3be6249ede26e6.
2017-12-05 15:40:37 +01:00
Axel Naumann
315dfad70e
Adapt to new default opt level.
...
As the default opt level decides which user-set opt levels cling will complain about, "control flow" changes were needed for the tests.
2017-11-07 19:44:33 +01:00
Axel Naumann
a9808afd40
Adapt to format changes in floating point value printing.
2017-11-07 19:44:33 +01:00
Vassil Vassilev
c912c9437d
Switch back to O0.
...
We have a suboptimal behavior in the way cling optimizes code in O2 mode.
Disable it until the issue is understood and fixed.
2017-11-03 16:19:32 +01:00
Axel Naumann
9f6e4d0ba0
Add test for "Also recognize templates as identifier."
2017-09-13 18:38:18 +02:00
Philippe Canal
f715135d1c
Don't clang-format cling test script.
...
Since the test script is not a fully compliant C++ file, clang-format can not
(be expected to) follow its unusual conventions/requirements.
2017-08-24 18:59:04 +02:00
Philippe Canal
6c368913e7
clang-format suggestion
2017-08-24 17:03:58 +02:00
Frederich Munch
38c4b902cf
Fix registration of other atexit functions during an atexit handler. Recursive registration of atexit handlers is legal and should be handled, not ignored.
2017-08-24 17:03:58 +02:00
Frederich Munch
fb2e8fc7a4
Fixes for CERN-LLVM.
2017-07-15 10:14:38 +02:00
Frederich Munch
eba5ccd09a
Update DeclCollectorPPAdapter to allow unloading of #undef command.
2017-07-15 10:14:38 +02:00
Roman Zulak
4a8d300bb1
When looking for the end of a block comment, really don’t bother with nesting. Finding the first end is good enough, the real parser can warn about any balancing issues.
2017-07-13 10:21:58 +02:00
Roman Zulak
6f5594ab4d
Fix block comments greedily looking for the next asterisk.
2017-07-13 10:21:58 +02:00
Bertrand Bellenot
8720965ee5
Dont pass -fPIC flag on Windows (unsupported option)
2017-07-06 16:59:40 +02:00
Bertrand Bellenot
5947e13cb9
Don't run Gnu.C test on Windows...
2017-07-06 16:44:06 +02:00
Frederich Munch
cdf5c72f1d
Fix tests on platforms with __float128 without forcing C++14.
...
This reverts commit c11224dce022f05a4e2bf7914a4b878c54f6bbca.
2017-07-05 10:00:05 +02:00
Frederich Munch
aad084a75a
UserInterface: cling is discarding the last line if it does not have a newline.
2017-07-04 15:29:09 +02:00
Axel Naumann
c11224dce0
Force -std=c++14 to enable __STRICT_ANSI__.
...
This removes __float128 warnings (enabled when building cling, disabled at runtime due to missing
support in clang) on MacOS with GCC.
2017-07-04 11:29:45 +02:00
Frederich Munch
4739761b89
Don’t clear GNUMode when user has specifically asked for it. There are uses that are valid even if the host compiled with _GLIBCXX_USE_FLOAT128.
2017-06-28 16:15:10 +02:00
Axel Naumann
6ec2c42b3c
Reflect updated function name in error message.
2017-06-26 17:44:07 +02:00
Axel Naumann
c283f26a8a
Fix test to check the right thing.
2017-06-26 17:44:07 +02:00
Axel Naumann
bef7762723
Remove outdated comment.
...
clang does warn about backslash-followed-by-tab.
2017-06-23 15:14:10 +02:00
Frederich Munch
df4aea2fb0
Add continuation support for comma and backslash characters.
2017-06-23 15:14:10 +02:00
Frederich Munch
7825094907
Fix test for CERN/master.
2017-06-23 10:44:12 +02:00
Frederich Munch
137e1a48af
Cleanup test formatting.
2017-06-23 10:44:12 +02:00
Frederich Munch
522b5f491c
Add support for multiple arguments in one pragma call. Add support for multiple styles:
2017-06-23 10:44:12 +02:00
Frederich Munch
955b5423e4
Make sure to declare gCling in C-mode. Skip failing test in AtExit.C.
2017-06-22 20:30:27 +02:00
Frederich Munch
8f29132120
Fix -fsyntax-only flag which changed in 0d15357 and to allow usage of gCling.
...
0d15357 unintentionally blocked inclusion of RuntimeUniverse.h when using -fsyntax-only.
2017-06-22 16:39:14 +02:00
Frederich Munch
ffa8f951ce
Combine similar tests into one file.
2017-06-21 08:29:11 +02:00
Frederich Munch
e641e0e837
Compress bools into bitfields.
2017-06-21 08:29:11 +02:00
Frederich Munch
1cc08e2cbe
Windows: Fix type printed for test/Utils/Transform.C
2017-06-21 08:29:10 +02:00