Alex Voicu
a27fa25d76
Revert "Revert adoption of CUDA indexing in general - this can only work with later versions of the compiler, just like module based dispatch, and thus must be guarded against usage in earlier (e.g. 1.6) versions."
...
This reverts commit 1cd6416
[ROCm/clr commit: 4966518846 ]
2017-11-29 21:49:10 +00:00
Alex Voicu
a1d5f0ab0c
Revert "Revert adoption of CUDA indexing in general - this can only work with later versions of the compiler, just like module based dispatch, and thus must be guarded against usage in earlier (e.g. 1.6) versions."
...
This reverts commit d2fd1f5
[ROCm/clr commit: 2557000b56 ]
2017-11-29 21:36:29 +00:00
Alex Voicu
579a3187da
Merge remote-tracking branch 'origin/master' into feature_use_module_based_dispatch_instead_of_pfe
...
# Conflicts:
# src/hip_module.cpp
[ROCm/clr commit: d37a5a6008 ]
2017-11-28 17:29:11 +00:00
Ben Sander
0de96b6e3e
Merge pull request #256 from gargrahul/texture_driver_api_support
...
Texture driver APIs support
[ROCm/clr commit: e93a24bdbe ]
2017-11-27 13:52:39 -06:00
Evgeny Mankov
2df33086a8
Merge pull request #262 from ChrisKitching/frontendaction
...
[HIPIFY] Mostly fix preprocessor-or-template induced issues
[ROCm/clr commit: b25d199111 ]
2017-11-27 17:30:11 +03:00
Rahul Garg
896c146fef
Porting guides update for texture APIs usage
...
[ROCm/clr commit: 3e9a4cfdd1 ]
2017-11-24 12:00:55 +05:30
Alex Voicu
f9b177c0b3
Modify the set component of the memcpy test (unclear why there is a memset component to begin with).
...
[ROCm/clr commit: 0755f1fc26 ]
2017-11-21 17:52:01 +00:00
Alex Voicu
9cf73ef515
Re-sync with upstream.
...
[ROCm/clr commit: 30d90dab38 ]
2017-11-20 15:34:50 +00:00
Maneesh Gupta
02cbb93ec1
Merge pull request #266 from gargrahul/fix_half2_gfx900
...
Fixed half2 issue on gfx900
[ROCm/clr commit: 4477d3d314 ]
2017-11-20 07:28:41 +05:30
Maneesh Gupta
9498ff3cae
Merge pull request #265 from phani544/nvccTests
...
[nvccTests]Enabled inline_asm_vadd on nvcc
[ROCm/clr commit: 29c0ab8401 ]
2017-11-20 07:28:29 +05:30
Ben Sander
809f575305
Fix test on cuda
...
[ROCm/clr commit: aeadc3f18f ]
2017-11-19 15:31:02 -06:00
Ben Sander
80021d3c68
Merge branch 'feature_natural_indexing' of https://github.com/AlexVlx/HIP
...
[ROCm/clr commit: a43262e699 ]
2017-11-19 15:25:17 -06:00
Ben Sander
6b1fb439f6
Temporarily disable P2P on nvidia (fails on dual GPU)
...
[ROCm/clr commit: fc34fd6f03 ]
2017-11-19 15:21:37 -06:00
Alex Voicu
af0ae5421c
This implements the trivial change needed to move back from the hip{Something}_{x, y, z} macros to the natural CUDA syntax of Something.{x, y, z}. This is contained in lines 384-404 in hip_runtime.h. All of the other changes have to do with changing unit tests to use this syntax. The macros are retained for backwards compatibility.
...
[ROCm/clr commit: 0cc921f103 ]
2017-11-19 01:54:12 +00:00
Rahul Garg
b0461a2176
Fixed test case for GFX900
...
[ROCm/clr commit: cfc9f87465 ]
2017-11-16 09:34:52 +05:30
Rahul Garg
c3ba309562
Fixed half2 issue on gfx900
...
[ROCm/clr commit: 20947f80fb ]
2017-11-15 18:52:59 +05:30
Phaneendr-kumar Lanka
3bfe30e22c
[nvccTests]Enabled inline_asm_vadd on nvcc
...
[ROCm/clr commit: 9fa3ed4f6f ]
2017-11-14 16:37:59 +05:30
Chris Kitching
c3dc74be1b
Add an explicit check for proper rewriting of CUDA includes
...
[ROCm/clr commit: 642af94492 ]
2017-11-13 21:02:42 +00:00
Chris Kitching
98034c4e3f
Add a preprocessor conditional to one of the tests
...
Hurrah, we can cope with ifdefs now (except for kernel launches)
[ROCm/clr commit: e8c1e7bb11 ]
2017-11-13 20:58:55 +00:00
Chris Kitching
41d7a05974
Add a test that exposes #260
...
[ROCm/clr commit: 0afc6b2e95 ]
2017-11-13 16:18:15 +00:00
Chris Kitching
5ced4544eb
Add a couple of missing CHECK directives to concurrentKernels.cu
...
[ROCm/clr commit: 4353fc06d7 ]
2017-11-13 16:17:19 +00:00
Alex Voicu
d7898eeef0
Update new tests so as to make them work with new variadic based launch mechanisms.
...
[ROCm/clr commit: 8c62d0fbc4 ]
2017-11-10 00:14:34 +00:00
Alex Voicu
12f00d4881
Merge remote-tracking branch 'origin/master' into feature_use_module_based_dispatch_instead_of_pfe
...
# Conflicts:
# tests/src/runtimeApi/stream/hipStreamSync2.cpp
[ROCm/clr commit: f7919a8321 ]
2017-11-08 10:26:30 +00:00
Maneesh Gupta
907a265bc1
Merge pull request #255 from AlexVlx/remove_some_trailing_whitespace
...
Clean up trailing whitespace so as to reduce noise in #246 .
[ROCm/clr commit: 6f1298d9f6 ]
2017-11-08 10:29:19 +05:30
Maneesh Gupta
9fe4f363ef
Merge pull request #253 from mangupta/hit_add_cmakecmd
...
[hit] Add support for cmake commands as part of test infra
[ROCm/clr commit: 86f5934beb ]
2017-11-08 09:50:29 +05:30
Alex Voicu
142213a52b
Clean up trailing whitespace so as to reduce noise in #246 .
...
[ROCm/clr commit: 0ad1308efd ]
2017-11-08 00:08:55 +00:00
Phaneendr-kumar Lanka
fc1af184a4
identation change in hipPeekAtLastError
...
[ROCm/clr commit: 2a1d7db371 ]
2017-11-07 09:51:32 +05:30
Alex Voicu
2db0344254
Merge remote-tracking branch 'origin/master' into feature_use_module_based_dispatch_instead_of_pfe
...
[ROCm/clr commit: 8854dec897 ]
2017-11-07 00:01:22 +00:00
Maneesh Gupta
f00dd1ad73
[hit] Add support for cmake commands as part of test infra
...
Cmake supports several builtin command-line tools. These tools can
now be specified as part of the HIT block. These commands will be
run during cmake configure step.
Change-Id: I32466c94b2fe1ecdc30249755fc027102295617d
[ROCm/clr commit: f92648e447 ]
2017-11-06 16:53:57 +05:30
Phaneendr-kumar Lanka
b36eb26ef0
Modified tests as per review
...
[ROCm/clr commit: e18f4239b6 ]
2017-11-06 15:13:36 +05:30
Phaneendr-kumar Lanka
700890e19a
More tests for memory,stream & error APIs
...
[ROCm/clr commit: 7427abba04 ]
2017-11-06 11:31:52 +05:30
Maneesh Gupta
5b217496ec
Merge pull request #239 from phani544/newTests
...
[newTests]Adding tests for device APIs
[ROCm/clr commit: 544538fd88 ]
2017-11-06 07:22:13 +05:30
Phaneendr-kumar Lanka
6034d9fcc1
[newTests]modified the test
...
[ROCm/clr commit: fa32a1924a ]
2017-11-03 14:52:19 +05:30
Phaneendr-kumar Lanka
35b9e10294
[newTests]Modified the test as per review comments
...
[ROCm/clr commit: 19946ca43d ]
2017-11-03 10:39:47 +05:30
Alex Voicu
41045dd24d
This corrects some interesting choices that were present in the HIP
...
unit tests such as e.g. de-allocating memory allocated with new[] using
free. All of these were identified via cppcheck.
[ROCm/clr commit: 58a18eaf0c ]
2017-11-01 22:51:22 +00:00
Alex Voicu
b738633bcb
This switches HIP from its currently convoluted macro + pfe based dispatch mechanism to a more natural one partially based on the existing module API. The basic idea is that HCC will always correctly emit __global__ functions: as empty-bodied stubs, on host, and as kernels, on device. It then becomes trivial to obtain the mangled name on host, at dispatch, from the function's address, and then to use the mangled name to retrieve the kernel. This should address all problems stemming from serialisation, dubious mismatches due to the manufactured functor, macro-isms et al. It also immediately enables support for generalised globals as a consequence of that being available in the module API. Finally, it will make debug much easier, since the actual names of the __global__ functions will automatically be used in traces etc. One detail is that due to how dispatch works now (hipLaunchKernel and hipLaunchKernelGGL are themselves variadic function templates which deduce the function type of the callee), in certain cases it may be necesssary to insert explicit casts to ensure that the variadic argument list selects a viable overload - this can be observed in some unit tests. Eventually we may be able to remove this limitation, but for now it does not appear terribly onerous. The code is not extremely HIPpie, nor is it fully optimised, but rather is intended as a starting point for the HIP team to make its own.
...
[ROCm/clr commit: 28f87f7d2e ]
2017-11-01 15:09:59 +00:00
Maneesh Gupta
c1639486c6
Merge pull request #197 from bensander/update_coherency_tests
...
Update coherency tests
[ROCm/clr commit: a6458616f5 ]
2017-10-31 17:26:50 +05:30
Ben Sander
a6d17854f8
Merge pull request #226 from scchan/add_printf3
...
add printf to HIP device functions
[ROCm/clr commit: 4debd30c3d ]
2017-10-30 17:08:18 +01:00
Phaneendr-kumar Lanka
9486eadfbe
[newTests]Adding tests for device APIs
...
[ROCm/clr commit: 71434383a3 ]
2017-10-30 14:34:24 +05:30
Siu Chi Chan
bec0ff43e0
Merge remote-tracking branch 'origin/master' into HEAD
...
[ROCm/clr commit: cf98d0e37d ]
2017-10-27 01:18:28 -04:00
Chris Kitching
7360326705
Greatly enhance handling of macros in kernel launches
...
All but the most contrived use of macros is now properly handled -
have a look at the new testcases this commit adds. You can have
macros in kernel calls, macros spanning chunks of your arguments,
the call, call parameters, or callee can all be macros or
partially macros.
[ROCm/clr commit: 6491c2c3eb ]
2017-10-26 17:28:46 +01:00
Ben Sander
4593effbe8
Clean up test to address review feedback.
...
[ROCm/clr commit: cc2bcbcbcf ]
2017-10-25 16:08:16 -05:00
Chris Kitching
31920efae1
Don't use now-defunct cmake variable in lit test config
...
[ROCm/clr commit: 8d91579dcf ]
2017-10-24 20:52:51 +01:00
Siu Chi Chan
9997997fe5
add an unit test for printf
...
[ROCm/clr commit: f1992c5b11 ]
2017-10-23 18:31:13 -04:00
Chris Kitching
26be50b082
Add concurentKernels.cu to the testsuite
...
[ROCm/clr commit: 2c65d0da37 ]
2017-10-23 13:39:37 +01:00
Chris Kitching
8fffd03350
Add the CUDA samples include dir to the path for tests
...
Means we get to easily steal CUDA examples for tests
[ROCm/clr commit: 64d5f07050 ]
2017-10-23 13:39:37 +01:00
Chris Kitching
7547f796d0
Add cudaRegister.cu lit test
...
[ROCm/clr commit: 2437b31939 ]
2017-10-23 13:39:37 +01:00
Chris Kitching
8fd3b3b1cd
Add square.cu to lit testsuite
...
[ROCm/clr commit: ead79e5bf4 ]
2017-10-23 13:39:37 +01:00
Chris Kitching
8b311424a6
Introduce a test runner script to simplify invocation
...
... And to use a standard, highly amusing trick for making
coloured output work.
[ROCm/clr commit: c99dcbba8d ]
2017-10-23 13:39:37 +01:00
Chris Kitching
4e80782cda
Adapt lit test for the hipLaunchKernelGGL changes from before...
...
[ROCm/clr commit: 5912f465bd ]
2017-10-23 13:39:37 +01:00