Граф коммитов

102 Коммитов

Автор SHA1 Сообщение Дата
Alex Voicu 4e6996282d Add support for the hipFuncGetAttributes interface.
[ROCm/clr commit: bf9529aaa8]
2018-05-11 03:35:10 +01:00
Rahul Garg 39a19cc9e8 Added hipMemset2DAsync support
[ROCm/clr commit: fcc0866681]
2018-04-17 18:27:27 +05:30
Maneesh Gupta 46ddefedee Apply .clangformat to all repo source files
Change-Id: I7e79c6058f0303f9a98911e3b7dd2e8596079344


[ROCm/clr commit: 9e47fccc89]
2018-03-12 11:29:03 +05:30
Alex Voicu eab8624938 Re-sync with upstream.
[ROCm/clr commit: a704bd8b44]
2018-02-12 20:20:24 +00:00
Maneesh Gupta b91b2601f3 Merge pull request #299 from mangupta/hipStreamAddCallback
Implement hipStreamAddCallback

[ROCm/clr commit: 8359c2eb5a]
2018-02-02 08:32:41 +05:30
Maneesh Gupta 469ffecc71 hipStreamAddCallback.cpp: Replace unistd sleep with sleep_for
Change-Id: I7a5d40a1acd8be76a0f175bcfa731ad89fb88d81


[ROCm/clr commit: 3aab52d7cc]
2018-01-31 10:48:17 +05:30
Maneesh Gupta b2bb274b7e Fix hipStreamAddCallback testcase for nvcc
Change-Id: Ieec4b8d7933d8d68394d21d27132da206111efc8


[ROCm/clr commit: 6a37c60eaa]
2018-01-30 12:32:46 +05:30
Alex Voicu 392dd28899 Merge branch 'master' of https://github.com/ROCm-Developer-Tools/HIP into feature_purge_genco
[ROCm/clr commit: 09c704a2d0]
2018-01-17 14:02:19 +00:00
Phaneendr-kumar Lanka 015366e29e [nvcc] Enable hipGetDeviceAttribute
[ROCm/clr commit: dc6094cc60]
2018-01-10 10:51:01 +05:30
Maneesh Gupta 290b5f1738 Implement hipStreamAddCallback
Change-Id: Ib851e4d86ba9c8406ca37b88162ea483ccbc9d36


[ROCm/clr commit: cd9ba0d1e1]
2017-12-19 16:06:14 +05:30
Phaneendr-kumar Lanka 4571ec12ac [nvccTests] Resubmit hipMemcpyDtoD & inline_asm_vadd
[ROCm/clr commit: 89bedb74e7]
2017-12-18 14:46:19 +05:30
Alex Voicu 998b5dc3fa Merge branch 'master' of https://github.com/ROCm-Developer-Tools/HIP into feature_purge_genco
[ROCm/clr commit: 4d0d4dc701]
2017-12-14 13:50:49 +00:00
Phaneendr-kumar Lanka 033e2cde33 [nvccWarnings] Fix warnings seen with dtests on nvcc path
[ROCm/clr commit: 0ac125e3db]
2017-12-14 14:10:37 +05:30
Alex Voicu aa48cc7b55 This introduces LipoProteinLipase (lpl), a simple tool for creating fat binaries. It represents a direct replacement of the creaky hccgenco.sh script, which had various issues. The format it uses is that of a code object bundle, generated by the Clang Offload Bundler. The output is always suffixed with the ".adipose" extension. It is shared with HCC. The hipcc script and associated tests are modified to use lpl. Help can be obtained by invoking lpl --help. A more computer-sciency / corporate friendly name is likely to be beneficial, which is a reason for choosing easily searchable/replaceable names such as lpl or adipose.
[ROCm/clr commit: 4e0739c68a]
2017-12-08 04:22:57 +00:00
Rahul Garg 156e35cfe9 Fix hipGetDeviceAttribute dtest for HIP/NVCC
[ROCm/clr commit: a62ef42c09]
2017-12-06 15:49:06 +05:30
Ben Sander c9f031bc72 Temporarily disable a couple tests pending some HCC work
[ROCm/clr commit: 721d862089]
2017-12-01 21:46:28 +00:00
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 9cf73ef515 Re-sync with upstream.
[ROCm/clr commit: 30d90dab38]
2017-11-20 15:34:50 +00: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
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
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
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 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
Phaneendr-kumar Lanka 9486eadfbe [newTests]Adding tests for device APIs
[ROCm/clr commit: 71434383a3]
2017-10-30 14:34:24 +05:30
Ben Sander 4593effbe8 Clean up test to address review feedback.
[ROCm/clr commit: cc2bcbcbcf]
2017-10-25 16:08:16 -05:00
Ben Sander 6dde6de34c Test cleanup.
[ROCm/clr commit: c4612f3dc9]
2017-10-07 07:54:10 -07:00
Ben Sander c6b96822dc Add copy_coherency test
Test cache managemenent and synchronization between kernel and copy commands
in separate queues.


[ROCm/clr commit: cb613bb6a8]
2017-10-07 07:54:10 -07:00
Ben Sander b45217fef0 Refactor hipStreamWaitEvent
- Null streams use same flow as non-null.
- Add HIP_SYNC_STREAM_WAIT
- Resolve null stream.


[ROCm/clr commit: ed8c3ba7e7]
2017-08-31 03:00:14 +00:00
Rahul Garg b6e1129b22 Enable hipStreamSync2 and record_event dtests
[ROCm/clr commit: 3e4df05632]
2017-08-24 15:51:58 +05:30
Rahul Garg a76d10b58e PCI Bus ID related dtests
[ROCm/clr commit: 5a49396e3e]
2017-08-22 15:41:16 +05:30
Rahul Garg b32cf1b3e8 Disable failing test p2p_copy_coherency
[ROCm/clr commit: f916a7654e]
2017-08-02 14:47:13 +05:30
Maneesh Gupta 1d986efecf [dt] temporarily disable broken tests
Change-Id: I3ce23e410dc36e06d460263d768412f8368a6699


[ROCm/clr commit: 814eddcd96]
2017-07-18 11:17:02 +05:30
Ben Sander f1bed37a34 Clean up old USE_* and RELEASE.md notes.
[ROCm/clr commit: 42882ddf9c]
2017-06-23 18:05:30 -05:00
Rahul Garg 942fc5de3f Update P2P test for using memcpy and kernel tests
Change-Id: Ib0f8fc9425e6e85fd11d7d02395c52bc713dcb37


[ROCm/clr commit: ce6e455677]
2017-06-12 11:53:25 +05:30
Maneesh Gupta 57bfd56a0d hipMemcpy-size test: reduce max size to make it work correctly on nvcc path
Change-Id: I9ce9f5a9e141ffd8ddf961269010b33358e02771


[ROCm/clr commit: ff8ade59aa]
2017-06-07 15:25:54 +05:30
Maneesh Gupta e23be58d91 p2p_copy_coherency test: gracefully handle single gpu case
Change-Id: I216663f67ef58c673136332635dab8b57079b909


[ROCm/clr commit: a7dc938ec0]
2017-06-07 15:23:37 +05:30
Ben Sander 7237ed04f3 Fix HIP_SYNC_NULL_STREAM=0 mode.
- Fix null-stream sync
- hipStreamDestroy of null stream returns hipErrorInvalidResourceHandle
- Update documentation.
- Add tests for null stream sync, hipEventElapsedTime.
- Rename internal enum hipEventStatusRecorded to hipEventStatusComplete
- refactor hipStreamWaitEvent to streamline control-flow


[ROCm/clr commit: 823281dcba]
2017-06-05 08:50:22 -05:00
Ben Sander be21cd1a91 Update tests.
Fix some NVCC issues.
Add hipStreamSync2, record_event tests.


[ROCm/clr commit: 863b7c3f56]
2017-06-04 20:18:37 -05:00
Ben Sander 6aaeed821d Update tests, add p2p coherency test.
[ROCm/clr commit: 15f54fb943]
2017-06-03 17:11:34 -05:00
Maneesh Gupta 0e4e17db27 Fix hipMemoryAllocate test for single GPU
Change-Id: If121c18ab490ba125dc689ffc08a8839fd280c38


[ROCm/clr commit: 06ee0d3704]
2017-05-31 10:16:57 +05:30