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

13402 Коммитов

Автор SHA1 Сообщение Дата
Vladislav Sytchenko 37b7dda7bc Add .gitignore file.
Change-Id: Ia072769a04a6c2ed11eb245efc00dd9d555c4d93


[ROCm/clr commit: afa685234c]
2020-02-18 11:09:50 -05:00
German Andryeyev 801fe99636 SWDEV-222307 - Add CMake support for PAL
Remove dependency on COMGR headers from backends.
Remove GFX103 PAL defines.

Change-Id: I6ff76dca2a0c84bc191e8fc8b639f2f5872d2085


[ROCm/clr commit: 1be1e69f2a]
2020-02-18 10:56:31 -05:00
Payam Ghafari 6cb9ca6157 Merge "updated package generation and removed hiphcc_static as a target for hip-vdi" into amd-master-next
[ROCm/clr commit: f7300f5cbe]
2020-02-18 10:47:47 -05:00
Alex Voicu 3057a52be5 Tweak synchronous memcpy implementation (#1809)
The existing one can have issues on certain systems, therefore this limits use of direct memcpy via largeBAR to sizes where it is unequivocally better.

Also addresses SWDEV-220030 and SWDEV-222237.

[ROCm/clr commit: 730f23829e]
2020-02-18 20:50:27 +05:30
Jatin Chaudhary c60714754c Adding a break at right spot to fix a bug in tests which got exposed with clang usage
Change-Id: Ibf197f0108eec0bc4b87df8672d24e394a03d1b3


[ROCm/clr commit: 96a5d45b0e]
2020-02-18 17:23:45 +05:30
Tao Sang 0f409bb67e Merge "Fix bug of hip/samples/0_Intro/hcc_dialects/vadd_hip" into amd-master-next
[ROCm/clr commit: ffb8689462]
2020-02-17 22:01:12 -05:00
Christophe Paquot c1e679491a Don't create a marker for start event in hipModuleLaunchKernel
And also don't optimize the case where start==stop event to compute
elapsed time since the command can be a NDRange one.
HIP directed test will need to be fixed for that.

Change-Id: I64fadd6ab8ab1a490e7a2b7165a591df5a5cf3a2


[ROCm/clr commit: 1f5ae789bb]
2020-02-17 14:16:31 -08:00
Evgeny 2ebf4994d7 adding 'hipHccModuleLaunchKernel' and 'hipExtModuleLaunchKernel'
Change-Id: Id9990ed3041b82956872a088ff019ade69d40afb


[ROCm/clr commit: 45b1673e26]
2020-02-17 16:06:24 -06:00
Yaxun (Sam) Liu 5748b7550b Let HIP-Clang inline all functions by default (#1875)
This is a quick workaround to match HCC behavior for performance since inlining usually
results in more optimization opportunities therefore better performance.

We will fine tuning inline threashold later.

[ROCm/clr commit: f4120043ed]
2020-02-17 22:49:26 +05:30
Rahul Garg 6f1d14c96d Fix hipMemcpy3D (#1798)
Fixes #1790 and #1791. hipMemcpy3D still requires further refactoring for different input and output combinations.

[ROCm/clr commit: ec84c16d75]
2020-02-17 19:35:35 +05:30
Payam Ghafari 67b65d785d Merge "updated hipcc to include HSA path for clang builds as well" into amd-master-next
[ROCm/clr commit: 52e6e35bf4]
2020-02-17 02:01:37 -05:00
Maneesh Gupta 734b90c592 [dtests] Fix random timeout failures in hipModuleLoadDataMultThreaded (#1877)
Limit the max threads that are launched to 16.

[ROCm/clr commit: 2ec55fde47]
2020-02-17 11:16:20 +05:30
Tao Sang 0292fd9991 Temporarily comment out Hcc-specific APIs for CLang compiler
Temporarily comment out Hcc-specific template functions
hipExtLaunchKernelGGL and hipOccupancyMaxPotentialBlockSize for CLang
compiler so that all test cases under hip/samples can be built
successfully for Clang + Hip/Hcc runtime.

Change-Id: Iafc761257be4a7b34eafa6759a01f369570cd6ce


[ROCm/clr commit: 15b91e9f1e]
2020-02-16 22:26:47 -05:00
Tao Sang 690db691bb Fix bug of hip/samples/0_Intro/hcc_dialects/vadd_hip
For hipLaunchKernelGGL(), hmod->kernargs is empty, thus we need
insert hmod->kernargs[name_str] which is empty.

Change-Id: I95f818d0525da84452e66c5778f0648a643843c7


[ROCm/clr commit: 05785772e3]
2020-02-16 17:58:04 -05:00
Payam 55c8ccf2be updated package generation and removed hiphcc_static as a target for hip-vdi
Change-Id: I0067dd6341f47a212cb02b8d43d3ea01644c2391


[ROCm/clr commit: 2f9cb366f2]
2020-02-16 03:00:59 -05:00
Tao Sang 53e62f704d Support defaultDriver test with Clang+Hcc Runtime
Fix the following issues:
1.Ignore hidden arguments of kernel functions.
2.Look up both origial function name and function name with .kd postfix
when argments are retrived from module.
3.Addition, fix compiling issue of LaunchKernel test app.

Change-Id: I9400943f2f02433cb4409b19c0cac3626c2bc454


[ROCm/clr commit: eb8c4d1ce2]
2020-02-15 19:29:13 -05:00
Saleel Kudchadker ae58f45215 Increase the amount of free mem withheld
Change-Id: I37ec2250885758f122db6eac0e897dc16d02558d


[ROCm/clr commit: a788f0bc15]
2020-02-15 16:14:16 -08:00
vsytch fd7dfa19d1 Add missing __hip_pinned_shadow__ attributes to the texture global vars. (#1866)
[ROCm/clr commit: 5afe43b1aa]
2020-02-15 09:52:25 +05:30
Maneesh Gupta 2b1a99ff12 Use deque instead of vector for code readers so that the iterators and references will be stable (#1851)
* Use deque instead of vector for code readers so that the iterators and references will be stable

* Fix compile error

* Assign the iterator

* Add multithreaded test

* Make threads a multiple of hardware concurrency

* Output on failure

* Add setDevice to try and initialize the context on cuda

* Create context for cuda

* Set context on each thread

* Reduce threads on cuda

* Skip test on cuda

* Try to initialize the primary context on cuda

* Push ctx to the stack as current

* Revert "Push ctx to the stack as current"

This reverts commit c1b707ff63.

* Revert "Try to initialize the primary context on cuda"

This reverts commit d9cbd5a143.

* updated test for nvidia path

* Add c++11 option for nvcc

Co-authored-by: satyanveshd <53337087+satyanveshd@users.noreply.github.com>


[ROCm/clr commit: e085417370]
2020-02-15 09:51:24 +05:30
Nick Curtis e9ee5a3719 Implement long / long long shuffles (#1829)
Implement additional data-types for shuffles (long and long long).
Based upon the double implementation.


[ROCm/clr commit: 5b0f34c59b]
2020-02-15 09:51:09 +05:30
Siu Chi Chan c74c8d7a1c Disabling HCC code object v3 generation by default.
Some PyTorch unit tests have regression.  Disabling cov3 to allow more
time to debug and unblock PyTorch

Change-Id: Iba7f425ef3499c20c42ec45d9152b5d27ce97d03


[ROCm/clr commit: 13052f27c2]
2020-02-14 19:39:27 -05:00
German Andryeyev 5009800a71 SWDEV-222307- Add CMake support for PAL
Use the new config file from VDI for the final link

Change-Id: Ia9dd284b630d82bb9c6fe54e5ddc2f493bd57152


[ROCm/clr commit: 723f0f4e4e]
2020-02-14 13:29:32 -05:00
Saleel Kudchadker 0ddfa04517 Implement HIP_HIDDEN_FREE_MEM env var
Set value to 256Mb to reflect what HIP/HCC reserves
Change-Id: Icaadf79f60d3916965ac168da237d15b975b1fe4


[ROCm/clr commit: 0730b39adb]
2020-02-14 12:57:11 -05:00
Evgeny Mankov 0fee0571d8 Merge pull request #1870 from emankov/HIP
[HIPIFY][doc] Update README.md: LLVM 10.0.0-rc2 - the latest supported LLVM Release

[ROCm/clr commit: eae0bddbca]
2020-02-14 13:25:43 +03:00
Evgeny Mankov fcf5546ec1 [HIPIFY][doc] Update README.md: LLVM 10.0.0-rc2 - the latest supported LLVM Release
[ROCm/clr commit: 0315aefe78]
2020-02-14 13:09:31 +03:00
Rahul Garg 50395502b6 [sample] Add hipDispatchEnqueueRateMT (#1869)
* [sample] Add hipDispatchEnqueueRateMT



[ROCm/clr commit: 893ccc4ddf]
2020-02-13 23:21:40 -08:00
Christophe Paquot a213e5d155 Append before setting last command to avoid corner case
Change-Id: Iafe5f899427f0119e7f43e96af38e6e3a1dbfc93


[ROCm/clr commit: 566144edb2]
2020-02-13 22:23:20 -05:00
Payam ca7c148089 removing oocupancy tests from hip-vdi for now
Change-Id: I06e966d07021af87fa2c195e4bbaf6bcc336658d


[ROCm/clr commit: 9bdc203a99]
2020-02-13 21:40:06 -05:00
Karthik Jayaprakash 773abcec8b SWDEV-210443 - For Numa nodes pick up the CPU that has Memory pool.
Change-Id: If52852b6f12053e4dfe8a83b8aa5743137c3d6dc


[ROCm/clr commit: 7fb53890b8]
2020-02-13 20:48:37 -05:00
Scott Linder b14a1220c2 Stop using deprecated Comgr option API
Update a use of the deprecated amd_comgr_action_info_set_options to
instead use amd_comgr_action_info_set_option_list.

Completely remove all references to amd_comgr_action_info_set_options
and amd_comgr_action_info_get_options from the runtime.

Change-Id: I12a0803c87430722364ec22818e249caf3798c88


[ROCm/clr commit: da2e4d449c]
2020-02-13 18:53:48 -05:00
Christophe Paquot b486a20a88 Merge "hipLaunchByPtr and hipLaunchKernel deviceId potential issue" into amd-master-next
[ROCm/clr commit: d6b9b323b8]
2020-02-13 18:49:06 -05:00
Laurent Morichetti 7de346234a Fix build errors for PAL and GSL
The last commit to replace the cl_* types with standard types
failed to correct issues introduced in the PAL and GPU backend.

Change-Id: I926997234dfbe346fc165a7bc4e1b8aabab7bac5


[ROCm/clr commit: b81816f482]
2020-02-13 16:52:32 -05:00
Payam b6f311794e updated hipcc to include HSA path for clang builds as well
Change-Id: Icaaa68fdbe79fb16e4e9fedd420460f1479d7fe0


[ROCm/clr commit: 87cd9451f2]
2020-02-13 16:48:24 -05:00
Christophe Paquot 06ab4fdf36 SWDEV-222949 - hipEventRecord
hipEventRecord should always create a new marker so it can track work going on at the time the API is called.

Change-Id: I10ce98044be894fbacab8798441ec3d3f2753b93


[ROCm/clr commit: eb132ccef8]
2020-02-13 15:01:49 -05:00
Christophe Paquot 39a1cff6e0 hipLaunchByPtr and hipLaunchKernel deviceId potential issue
Those APIs should look at the device associated with the stream first.
If that stream is null then get the current device ID.

Change-Id: Iedde1d1644818ba64f128b988f0bd9674f5b8ad6


[ROCm/clr commit: 8f5a70a150]
2020-02-13 12:00:30 -08:00
Tao Sang 1da44b1e01 Merge "Support app(hcc compiled/Hip-Vdi runtime linked)" into amd-master-next
[ROCm/clr commit: b733a1bc5c]
2020-02-13 14:25:30 -05:00
Evgeny Mankov faf676764d Merge pull request #1867 from emankov/HIP
[HIPIFY][doc] Update README.md: Windows tested configurations

[ROCm/clr commit: 60c76da392]
2020-02-13 18:48:38 +03:00
Evgeny Mankov 0c84df243f [HIPIFY][doc] Update README.md: Windows tested configurations
[ROCm/clr commit: fb52a3973b]
2020-02-13 18:34:10 +03:00
Aaron Enye Shi 468959c409 HIP-VDI fix CPACK packaging dependencies
Change-Id: I64d803499dd8b2fc80b1320f71115ebaf019a9e7


[ROCm/clr commit: 0bab88c22e]
2020-02-13 10:02:49 -05:00
Satyanvesh Dittakavi 373da28853 Add c++11 option for nvcc
[ROCm/clr commit: 2034ed3561]
2020-02-13 19:48:26 +05:30
Satyanvesh Dittakavi 360f321e76 updated test for nvidia path
[ROCm/clr commit: 627d9a1f46]
2020-02-13 16:34:05 +05:30
Jeff Daily 40688fbfc2 missing break statement in hipDeviceGetAttribute (#1865)
The break is missing for hipDeviceAttributeMaxTexture3DDepth.

[ROCm/clr commit: fe47fce496]
2020-02-13 14:22:56 +05:30
Sarbojit2019 194b05efe2 [hip] Fix for bug introduced in #1770 when blockSize is non-power of 2 (#1864)
Fixes SWDEV-222161

[ROCm/clr commit: a03628335c]
2020-02-13 14:22:46 +05:30
Sarbojit2019 56398f5269 ihipEnablePeerAccess return error if peer is not accessible (#1858)
hipDeviceEnablePeerAccess returns success and adds peer into the list even if it is not accessible which creates problem in hipMalloc when it tries to share the ptr to peer device.
Proposed change is to check the access status before updating the peer list and update only when it can access the peer.

[ROCm/clr commit: e334d3d6ec]
2020-02-13 14:22:11 +05:30
ansurya 708af7e6ac Reduce GPU copying based on arch it runs on (#1751)
Implements SWDEV-213230.

[ROCm/clr commit: 888a7f2a90]
2020-02-13 14:21:51 +05:30
Saleel Kudchadker c01c70635c HIP version can be set in HIPRTC top layer
Indicate that its HIP_VDI to the compiler.
Change-Id: I691ddaa764b3ad62398003856c2480b2eece1f46


[ROCm/clr commit: a965c1eb0e]
2020-02-12 23:19:44 -08:00
Tao Sang 94a70b3447 Support app(hcc compiled/Hip-Vdi runtime linked)
The issues of the following functions have been fixed.
hipModuleLoad: Make Hip-Vdi runtime able to read code object module
generated by Hcc compiler.
hipLaunchKernel: Use introspect method to find function if it cannot
be found from platform state instance.

Change-Id: Id740e5a96614ec6a0b6c704f8f74600bfdc4983e


[ROCm/clr commit: 62ef029288]
2020-02-12 16:42:54 -05:00
Laurent Morichetti b3297f189d Replace cl_* integral types with standard types.
cl_bool -> bool
cl_int -> int32_t
cl_uint -> uint32_t
cl_long -> int64_t
cl_ulong -> uint64_t
cl_float -> float
cl_double -> double
cl_bitfield -> uint64_t

Change-Id: I840c8993b55f98f5b745d21e27f5f28233647a58


[ROCm/clr commit: d9d9c69399]
2020-02-12 13:16:06 -08:00
Laurent Morichetti 6982f99f6e Remove cl_icd.cpp from the build.
We should be using the temporary fixme.cpp instead.

Change-Id: I7e7a04bb518f56584c41bdb46a9192bde1f70060


[ROCm/clr commit: 64d9e658a9]
2020-02-12 10:46:33 -08:00
Evgeny Mankov 20b1eb7ffb Merge pull request #1830 from asalmanp/coop_flag_define
[HIP][HIPIFY] Add some missing flags for cooperative launch and occup…

[ROCm/clr commit: 5930da7f56]
2020-02-12 14:07:39 +03:00