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

3994 Коммитов

Автор SHA1 Сообщение Дата
Evgeny Mankov fefbb4ff84 Merge pull request #2016 from emankov/HIPIFY
[HIP][SPARSE] sync with HIPIFY's #95 and #96

[ROCm/clr commit: 0bde89dadd]
2020-04-14 10:43:21 +03:00
Yaxun (Sam) Liu 6a27e73755 Fix cmake config file (#2010)
Removed cmake target files under packaging directory.

Merged cmake config .in files for HIP-Clang and HCC as one.

Use cmake generated target files in both install and packaging.

This makes cmake config file consistent for make install and
make package.

Change-Id: Iae1f8ccb5b39c29f54297edf1c5df62eb5a0253d

[ROCm/clr commit: b1ed909f73]
2020-04-13 16:45:14 -07:00
Aryan Salmanpour 2d45fcc1b4 [HIP] add support for NoPreSync/NoPostSync flags for Cooperative MultiDevice launch API (#1990)
[ROCm/clr commit: 4d05b4dce7]
2020-04-13 14:02:52 +05:30
Evgeny Mankov bc365c1349 [HIP][SPARSE] sync with HIPIFY's #95 and #96
Based on:
  https://github.com/ROCm-Developer-Tools/HIPIFY/pull/95
  https://github.com/ROCm-Developer-Tools/HIPIFY/pull/96
Update hipify-perl and CUSPARSE_API_supported_by_HIP.md accordingly


[ROCm/clr commit: f2205827bb]
2020-04-10 19:36:43 +03:00
Evgeny Mankov 7fe43d9bc3 [HIP][HIPIFY] Remove HIPIFY related stuff due to moving of HIPIFY to a separate repo (#2002)
HIPIFY tools now are here: https://github.com/ROCm-Developer-Tools/HIPIFY

[ROCm/clr commit: 5d0ce39669]
2020-04-07 14:03:30 +05:30
Evgeny Mankov de7d5d2f28 [HIP][doc] Update docs due to moving of HIPIFY to a separate repo (#2001)
[ROCm/clr commit: 8e6c0e9fcb]
2020-04-07 14:03:19 +05:30
Rahul Garg 63332172d6 Rename hipDrvOccupancy to hipModuleOccupancy and match CUDA syntax (#1943)
[ROCm/clr commit: 69e09a0b1b]
2020-04-07 14:02:52 +05:30
satyanveshd 672462fcfc fix hipIpcOpenMemHandle (#1998)
[ROCm/clr commit: 20d9986548]
2020-04-06 15:39:49 +05:30
Rahul Garg 76f7af0dda use hsa_executable_get_symbol_by_name in find_kernel_by_name (#1994)
[ROCm/clr commit: f7751db2ee]
2020-04-06 15:39:30 +05:30
Rahul Garg ef7397ae35 Bump version to 3.5 (#1993)
* Switch CI testing from rocm-3.1.x to rocm-3.3.x
* Update hcc workweek for cooperative view
* bump version to 3.5

[ROCm/clr commit: c09c4cd239]
2020-04-06 15:39:10 +05:30
Sarbojit2019 77fd519260 hipEventElapsedTime should respect device (#1992)
Fixes SWDEV-228636.
Also added a unit test to verify this.

[ROCm/clr commit: 3523219b43]
2020-04-06 15:38:25 +05:30
lmoriche 318fbce04d Don't duplicate embedded code objects (#1991)
If the code object is embedded in an already mapped file, and the
lifetime of the mapped file exceeds the lifetime of the executable,
we do not need to make a copy of the binary.

This allows the ROCR to present the code object URI as
file:///path/to/file#offset=X&size=Y.

[ROCm/clr commit: 67830996a9]
2020-04-06 15:37:35 +05:30
Jatin Chaudhary f2ea243fa5 Removing header size from formula (#1988)
Fixed a bug in the elf file size computation.

[ROCm/clr commit: eab81ca91b]
2020-04-06 15:37:07 +05:30
Rahul Garg aae8a4080d Fix 2D and 3D memset (#1987)
[ROCm/clr commit: 017a27214c]
2020-04-06 15:35:59 +05:30
ansurya 6b18a8e068 Initial support for bfloat16 (#1980)
[ROCm/clr commit: ff7aaedca2]
2020-04-06 15:35:43 +05:30
Yaxun (Sam) Liu ecfda14b46 Fix ambiguity of fma for _Float16 for libc++ (#1976)
libc++ defines fma as template function for auto promotion of mixed-type
arguments. libc++ does not handle _Float16 as _Float16 is not a supported
type by C++ standard. As such, it is unlikely we can commit our fix for
_Float16 to libc++ trunk.

Therefore we handle _Float16 with a template specialization of
__numeric_type in HIP headers.

Change-Id: If01960a657ebf1a7a67463cdcf66fab7458dff3c

[ROCm/clr commit: 6f439f0232]
2020-04-06 15:35:18 +05:30
eshcherb 8a0e7adf78 adding HIP_PROF version macro (#2000)
[ROCm/clr commit: e524d1d54a]
2020-04-04 13:10:28 -07:00
eshcherb 2fa4dc4b57 adding hipApiString (#1989)
[ROCm/clr commit: 1e5ea70588]
2020-04-01 12:10:33 +05:30
ansurya 79c1ac76a4 tex1Dfetch behaviour for different address mode and filter mode (#1772)
Fixes github issue: #1754

- When ResourceDesc::resType is hipResourceTypeLinear ignore address mode and filter mode.
- When textureDesc::normalizedCoords is set to zero, AddressModeWrap and AddressModeMirror won't be supported and will be switched to AddressModeClamp.

[ROCm/clr commit: 68f1b814b1]
2020-04-01 12:10:17 +05:30
Sarbojit2019 7e05ef29eb Fix for segfault seen in hipMemcpyDtoD (#1964)
* Fixes SWDEV-227444.

[ROCm/clr commit: b55775a49e]
2020-03-28 17:29:49 +05:30
Maneesh Gupta 3d1b086400 Remove address_space(1) typecast and use __ockl_atomic_add_noret_f32 (#1956)
* Remove address_space(1) typecast for ockl_global_atomic_add_f32
* use __ockl_atomic_add_noret_f32

[ROCm/clr commit: 062938a14c]
2020-03-28 17:28:33 +05:30
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
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
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
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
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
Evgeny Mankov 677f9a3eb7 [HIPIFY][perl] Fix missed sync with hipify-clang
[ROCm/clr commit: 758b3864b7]
2020-03-18 14:24:02 +03:00
Evgeny Mankov a82c69da48 [HIPIFY][SPARSE] sync with hipSPARSE's "added csrsm2" (#83)
+ https://github.com/ROCmSoftwarePlatform/hipSPARSE/pull/83
+ Update doc and hipify-perl accordingly


[ROCm/clr commit: 126ebadcc6]
2020-03-18 13:44:50 +03:00
Evgeny Mankov be4ba44d12 [HIPIFY][SPARSE] sync with hipSPARSE
+ Update doc and hipify-perl accordingly


[ROCm/clr commit: baa0c68ab4]
2020-03-18 13:07:46 +03:00
Nagy-Egri Máté Ferenc f3c3070404 Remove debug message (#1950)
[ROCm/clr commit: b519d1d681]
2020-03-18 11:20:53 +05:30
Aryan Salmanpour 1c8dc380bc [HIP] use markers to sync cooperative and normal queues (#1948)
[ROCm/clr commit: 66735bff13]
2020-03-18 11:20:43 +05:30
Yaxun (Sam) Liu 5fffd89ae8 Workaround for libc++ include path for HIP-Clang (#1917)
HIP-Clang cuda_wrapper headers require clang include path before standard C++ include path.
However libc++ include path requires to be before clang include path.
To workaround this, we pass -isystem with the parent directory of clang include
path instead of the clang include path itself.

[ROCm/clr commit: 0307ae4c9a]
2020-03-18 11:20:21 +05:30
jglaser 76759ae09f Implement accurate max block size in hipFuncGetAttributes() (#1676)
This PR takes ensures that the maxThreadsPerBlock returned by hipFuncGetAttributes is both a multiple of the warp size and that the register usage of the maximum block does not exceed the number of available registers.

Fixes #1662

[ROCm/clr commit: ea28d64297]
2020-03-18 11:20:06 +05:30
Paul Fultz II 85fdd5afc9 Add missing flags for hip::device target on hip-clang (#1230)
This adds the missing compilation flags to hip::device so it can compile with hip-clang compiler.

[ROCm/clr commit: 9a47358324]
2020-03-18 11:18:58 +05:30
Evgeny Mankov 0d11749db2 [HIPIFY][doc] Update README.md: LLVM 10.0.0-rc4 is supported
[ROCm/clr commit: 7f51cdb9da]
2020-03-17 18:51:46 +03:00
Jatin Chaudhary 6d39b6fbb8 Adding Half Abs APIs (#1902)
[ROCm/clr commit: 8a3ce17ba6]
2020-03-17 14:13:19 +05:30