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

4785 Коммитов

Автор SHA1 Сообщение Дата
Saleel Kudchadker eba4688437 Merge "Check event status before notify" into amd-master-next
[ROCm/clr commit: a5c287554e]
2020-03-27 20:19:40 -04:00
Vladislav Sytchenko d71bdef595 (SWDEV-228794)
Adjust the origin of the copy if the user passes a pointer that wasn't allocated by the runtime.

Change-Id: I0aeb20195ed730857a461a53f537626ec2573fd1


[ROCm/clr commit: 86c969fcea]
2020-03-27 16:33:16 -04:00
Vladislav Sytchenko 3f6db04b75 (SWDEV-228794)
Add hipMallocHost()

Change-Id: Ia3c7c5ca94b39fe30f3a51d1b60782d3472259ff


[ROCm/clr commit: 08729d0f43]
2020-03-27 15:57:48 -04:00
Vladislav Sytchenko 004dff62c4 (SWDEV-228782)
The only requirment from hipMallocPitch() is that the returned pitch is aligned to the HW image pitch alignment. There is no restriction on the size of the allocation, since the memory might not be used for images.

Change-Id: I97438e5fe4012ca4721b14b85f514dbac803c17c


[ROCm/clr commit: 111897dbea]
2020-03-27 15:52:17 -04:00
Tao Sang 0e3a7ed058 Merge "Support hipFuncGetAttributes with hip-clang+Hcc RT" into amd-master-next
[ROCm/clr commit: b2afe3c250]
2020-03-27 14:36:41 -04:00
Saleel Kudchadker 4abf9f5c38 Check event status before notify
Change-Id: I68f6bbbf236e49b859be2d5afbe0c8282fe15dd3


[ROCm/clr commit: fa7dea42b5]
2020-03-27 11:32:46 -07:00
satyanveshd fbc9771f63 [dtests] Added few Negative tests (#1735)
[ROCm/clr commit: 4554bbd9f9]
2020-03-27 14:10:12 +05:30
Siu Chi Chan 922219117b don't expose symbols from code_object_bundle (#1971)
Change-Id: I56479485aad42c3d517fe6d9055be1cd846eeb00

[ROCm/clr commit: 6ab1e864b6]
2020-03-27 14:09:07 +05:30
Sarbojit2019 4ef95f4e73 Fix few memory leaks in HIP (#1969)
[ROCm/clr commit: 4a68ab5a8c]
2020-03-27 14:08:30 +05:30
Jatin Chaudhary d919e2223d Packaging changes to bring them to sync with generated ones (#1918)
[ROCm/clr commit: 2449e0de8b]
2020-03-27 14:08:12 +05:30
Tao Sang 8218ede5e8 Support hipFuncGetAttributes with hip-clang+Hcc RT
Fix issues of missing kernel function symbols and missing argument list via
using __hipRegister* functions.
Then the following tests can pass,
directed_tests/runtimeApi/module/hipFuncGetAttributes
directed_tests/runtimeApi/module/hipExtLaunchMultiKernelMultiDevice
directed_tests/gcc/LaunchKernel

Change-Id: I52135b61e8283eb4f9f10f77895151e4e55418d9


[ROCm/clr commit: 4a113bb669]
2020-03-26 23:28:35 -04:00
Saleel Kudchadker 09140bb72e OpenCL2.2 Header changes
Change-Id: I3285a8ffc7e34333feb68e925ebd460831c8e3d4


[ROCm/clr commit: 388e656c4e]
2020-03-26 17:35:09 -07:00
Vladislav Sytchenko 96dad9615a Add support for formating hipExtent objects
Change-Id: Iea54a510e81a856c0c450305b3e5a7179ee48295


[ROCm/clr commit: 2b538b09e6]
2020-03-26 14:45:20 -04:00
Vladislav Sytchenko e9eababfdd Enable initial sRGB support
Instead of using the sampler field force_degamma to perform sRGB->linear conversion during pixel sampling, we use an appropriate image format instead. The overhead of this is having to create an image view when creating a texture object from an array.

Change-Id: I1ca368c312c1fd4b6f784a3a1b35b5eeb28070ff


[ROCm/clr commit: 23211f05d6]
2020-03-26 14:45:20 -04:00
Vladislav Sytchenko cfc508eef0 Add initial entry points for mipmapped array API
Change-Id: Icd59cc7323ddcb6773da6105260415a1e6f4cdcb


[ROCm/clr commit: 06bb183558]
2020-03-26 14:45:20 -04:00
Vladislav Sytchenko 21587cb0fa Handle offsets for dptr <-> image copies
Change-Id: I7a4a56ee07a26a741d2aac35502446d248f720ad


[ROCm/clr commit: af1c5a0015]
2020-03-26 14:45:20 -04:00
Vladislav Sytchenko cf49aaa7fc Replace hip::TextureObject with __hip_texture
This avoids the use of extra casts when obtaining a texture object handle.

Change-Id: I42df22bdad0ab9ac6c33cb8b282dee65fe7cfd6e


[ROCm/clr commit: 6cfbe19160]
2020-03-26 14:45:20 -04:00
Vladislav Sytchenko fe369a0e18 Correctly format hipResourceDesc objects
The struct consists of a union - only the active object should be read.

Change-Id: I1c40965b61518acd91a2dcbae92a015ac9be346a


[ROCm/clr commit: 1cacb5c9b7]
2020-03-26 14:45:20 -04:00
Vladislav Sytchenko df2f07ce18 Headers need to export C symbols for texture API
This also adds declarations of all the missing texture APIs.

hipTexRefSet*() functions need to take a textureReference as a ptr for type erasure to work. Runtime has been modified to accomodate this.

This change only applies to VDI.

Change-Id: Icf43cc5bd44dfc2c39084b7fe56d5a793bf7319f


[ROCm/clr commit: 428b56e411]
2020-03-26 14:45:20 -04:00
Vladislav Sytchenko b7f6419f6a Set textureObject to nullptr
This avoids dangling pointers for newly initiazlied textures

Change-Id: Ia444b91fe17fd756ed583ec595ae1febbdfbd034


[ROCm/clr commit: 3ab8ff87cc]
2020-03-26 14:45:20 -04:00
Vladislav Sytchenko d3786bc9b3 Modify formatting for textureReferences
We don't program the numChannels and format members (these are HCC specific), so printing these will only display garbage.

Change-Id: I83dc8be9a3cae2659c64f4594d07c05330d2dd14


[ROCm/clr commit: d662abaf55]
2020-03-26 14:45:20 -04:00
Vladislav Sytchenko c0a3cb04fe Correct typos in texture function declarations
Change-Id: I492995e984eda2e8a5e806c5d4c9c78da09ac483


[ROCm/clr commit: dc015d27c1]
2020-03-26 12:43:17 -04:00
Vladislav Sytchenko 3b75b5fd64 Allow creating texture from unaligned user ptr
All we have to do is align the ptr to HW requirments an if it's not zero, then return the offset to the user.

We currently don't have anywhere to store this offset, so hipGetTextureAlignmentOffset() will still always return 0.

Change-Id: If31998127d99a2a3222a026d88249519d6102505


[ROCm/clr commit: 9823ccf5b0]
2020-03-26 12:43:17 -04:00
Aryan Salmanpour 89d0d9761a [hip] fix a build error when building hip with latest hcc (#1977)
there is a build error when building HIP with latest HCC from GitHub after PR#1935 merged into HIP master branch. this PR changed blockDimX to blockDim and two lines missed this change where added in the current PR.

[ROCm/clr commit: 1a1cdee6ff]
2020-03-26 17:10:42 +05:30
Nick Curtis 37ee2b90d2 Update hip_debugging.md (#1973)
Fix link formatting

[ROCm/clr commit: 8afea30768]
2020-03-26 17:09:56 +05:30
Sarbojit2019 77f9a99ef0 Fix for __usad issue (#1972)
Fixes #1930

[ROCm/clr commit: 13b73692d8]
2020-03-26 17:09:44 +05:30
Benjamin Sherman e13788ff95 Add const qualifiers to HIP_vector_type unary arithmetic operators (#1965)
Resolves issue #1960

[ROCm/clr commit: 09ffe4365d]
2020-03-26 17:09:00 +05:30
Siu Chi Chan b96a6053a5 Initialize all undef symbols with a magic poison (#1962)
[ROCm/clr commit: d822daa3a5]
2020-03-26 17:06:09 +05:30
Sarbojit2019 4f8c29f7dc Fix for segfault seen if invalid kind is passed to hipMemcpy (#1937)
Fixes SWDEV-224941

[ROCm/clr commit: 12448996e3]
2020-03-26 17:04:43 +05:30
Jatin Chaudhary b2615ca010 [dtest] Adding VectorTest (#1732)
Adding unit test for operations of device vector types

[ROCm/clr commit: b696451240]
2020-03-26 17:03:43 +05:30
Evgeny Mankov c9811fca37 [HIPIFY][doc] Update README.md: LLVM 10.0.0 Release is supported
[ROCm/clr commit: cc2991f714]
2020-03-26 11:07:43 +03:00
Payam Ghafari 4fdd67e878 Merge "updated cmake to create libamdhip64 static file as well" into amd-master-next
[ROCm/clr commit: 857990e3f6]
2020-03-26 01:10:12 -04:00
Paul Fultz II f25787c4b7 Fix path for hip-clang when using hipcc (#1961)
* Fix path for hip-clang when using hipcc

* Fix typo

* Update regex

[ROCm/clr commit: 05415b0dbf]
2020-03-25 14:42:48 -07:00
Yaxun (Sam) Liu 62d088b2c7 Add option --hipcc-func-supp for function support (#1957)
By default hipcc passes -mllvm options to let HIP-Clang inline all device functions.

--hipcc-func-supp enables function support and disables inline all.

--hipcc-no-func-supp disable function support and enables inline all.

This is a temporary solution to match HCC behavior for performance.

This option is mainly for debugging purpose.

Change-Id: I0c44ac1812bb3cea5c3e5b6e14ebaa45919236f6

[ROCm/clr commit: 2198aead38]
2020-03-25 14:41:27 -07:00
Joseph Greathouse 8ce72c7f06 Fix cooperative launch APIs to set hipGetLastError (#1935)
* Fix cooperative launch APIs to set hipGetLastError

Previously, the cooperative launch APIs did not properly log their
errors in the global hipGetLastError variable before returning back
to the user. As such, the APIs would leave hipSuccess in the
last error, which would break some use cases.

This fixes that problem by making a trampoline function that does
the HIP_INIT_API and ihipLogStatus.

* Add missing flag to the log of multi-GPU launch

[ROCm/clr commit: 341ef7fdca]
2020-03-25 14:39:24 -07:00
jujiang d77658cbee SWDEV-226708-hipMemcpyPeerAsync failed-->Update test app to create stream on proper device
Change-Id: Ia9f51435ffb5a8fbbff39e363acecabb338bf34c


[ROCm/clr commit: 01272807ea]
2020-03-25 17:22:56 -04:00
Payam 45a328041b updated cmake to create libamdhip64 static file as well
Change-Id: I2054b9501cefa232abbf398524ab62450ab6805d


[ROCm/clr commit: b3d705f7b3]
2020-03-25 16:37:57 -04:00
Vladislav Sytchenko 0333a3c226 Disable failing tests for VDI
The hipExtModuleLaunchKernel and hipModuleLoadDataMultiThreaded tests keeps randomly failing on Jenkins.

Change-Id: I87e5d54fb7429c14ff1dcecb20e03a7816670fae


[ROCm/clr commit: 684cdd4a18]
2020-03-23 17:09:57 -04:00
Christophe Paquot ebb2480254 Merge "Enable VDI Occupancy test" into amd-master-next
[ROCm/clr commit: cf09b9ca1e]
2020-03-23 13:38:57 -04:00
Nick Curtis 57fc126456 Update hip_runtime_api.h (#1966)
Correct URL for deprecated api list

[ROCm/clr commit: bf2fcce488]
2020-03-23 10:16:24 -07:00
Saleel Kudchadker f69dbb2438 Merge "Sync streams when freeing or destroying mem" into amd-master-next
[ROCm/clr commit: 436e5bb664]
2020-03-21 13:33:41 -04:00
Christophe Paquot f037cb7285 hipStreamAddCallback test seg faults
Change-Id: If419d2fad490d0ed50eb1315af809fc1deda1ce3
SWDEV-227875: Add a lock in streams to lock when the callback is call so we make sure things aren't moving forward in the stream


[ROCm/clr commit: 9f81498bb5]
2020-03-20 13:07:34 -07:00
Saleel Kudchadker adc574b2ed Sync streams when freeing or destroying mem
Change-Id: I6932f225a8b932bb2adbd5e37880f7e604496809


[ROCm/clr commit: 68df8efe90]
2020-03-20 10:53:23 -07:00
Christophe Paquot ee23705de2 Merge "hipStreamAddCallback test seg faults" into amd-master-next
[ROCm/clr commit: 446c8685e2]
2020-03-20 12:05:37 -04:00
kjayapra-amd 216aba5512 SWDEV-216213 - Lookup module functions from PlatformState::functions_.
Change-Id: I91dfe327f2ebdcf4c9b39ddd14d60aa0ce2fa9f4


[ROCm/clr commit: 334a1f8770]
2020-03-20 11:52:28 -04:00
Christophe Paquot 9130e160d8 hipStreamAddCallback test seg faults
Change-Id: I1f107fc8a5c586cd571f0280ed8716c5f89d25b7
SWDEV-227875: Need to add a dummy marker in case the stream is empty.


[ROCm/clr commit: 31df9b358d]
2020-03-19 11:11:59 -07:00
Yaxun (Sam) Liu 95dc897815 Let hipcc treat .c program as C program (#1945)
nvcc treats .c program as C program and .cpp program as C++ program.

Currently hipcc treats .c and .cpp programs as HIP programs.

It is desirable to let hipcc behave like nvcc.

Currently it is not feasible to let hipcc treat .cpp programs as C++ program
since there are too many HIP applications use .cpp as extension for HIP programs.
However we should be able let hipcc treat .c program C program since there
are few applications use .c as extensioin for HIP programs.

[ROCm/clr commit: 31d9ea89f1]
2020-03-19 16:16:31 +05:30
Jeff Daily 1a434dccd3 fix hipStreamAddCallback, block future work on stream (#1934)
[ROCm/clr commit: 1444f850ac]
2020-03-19 16:16:04 +05:30
nelsonc-amd 006f7e0b06 packaging: change Provides to use dash instead of underscore (#1913)
Addresses an installation problem for several HIP packages.
Packages builds have been tested locally, validation in progress.

[ROCm/clr commit: d90a0c05c0]
2020-03-19 16:15:09 +05:30
Sarbojit Sarkar aa49455725 Enable VDI Occupancy test
Change-Id: Ia89155ca909b9b7346584d19962fa0a94033bb17


[ROCm/clr commit: 6cf86b20c6]
2020-03-19 10:43:40 +05:30