Gráfico de commits

5990 Commits

Autor SHA1 Mensaje Fecha
kjayapra-amd 39c5893f82 SWDEV-286346 - Implement Arena Memory Object for externally created memory.
Change-Id: I1aae0d24b28eebaf7f67e941aaa475a53831e9b8


[ROCm/clr commit: 7fc700c348]
2021-05-18 10:24:40 -04:00
German Andryeyev 9a580288eb SWDEV-240804 - Allow system memory creation.
Always allocate managed memory in ROCclr and backend will decide
what kind of memory to use. Currently ROCclr should fall to
GPU accessible system memory if HMM isn't available

Change-Id: I71328687b2dd4a3f563571f2b755079d82dca433


[ROCm/clr commit: 302e527225]
2021-05-18 09:32:57 -04:00
Tao Sang fad72a437f SWDEV-282588 - Improve clock64()
Let clock64() read s_memtime to prevent rolling over
Add wall_clock64() to read s_memrealtime

Change-Id: I706387355add75852c570be2656131ef99e8968f


[ROCm/clr commit: 26235f49e6]
2021-05-17 13:19:04 -04:00
cjatin 71ae783de1 SWDEV-285685 - Make sure the output of hipconfig is without quotes on linux
Change-Id: I620cd41c7e6087b0d3d7da9ef7f9cecaf2f740ba


[ROCm/clr commit: 82610fe3d5]
2021-05-17 20:50:36 +05:30
Aaron En Ye Shi 3a23df8893 SWDEV-263959 - Fix device decl with long and llong
Windows may expect long and ulong to be 4 bytes, while
Linux expects 8 bytes. Instead, use uint64_t for
unsigned long, and unsigned long long, and use int64_t
for long and long long to be consistent.

Change-Id: I6ed1cdde43721bcaaab0245644d607b1adbf9884


[ROCm/clr commit: dd643ec517]
2021-05-14 11:59:27 -04:00
Julia Jiang c036d21f61 SWDEV-286322 - Fix EOL
Change-Id: Ie266135ebf754b5af27c1dc768bda1ca0245d936


[ROCm/clr commit: 77ba798177]
2021-05-14 11:32:55 -04:00
Aaron En Ye Shi 1099d6fb81 SWDEV-283266 - Add hiprtc option to generate preprocessor expansion
Add -r/--generate_rtc option to hip_embed_pch.sh to generate the
preprocessor expansion output of the HIP headers for hipRTC mode.
Generates an object hiprtc_header.o and shared library libhiprtc.so
which can be used for hipRTC online compilations. Enable
__HIP_ENABLE_RTC by default in the CMake files.

Change-Id: Ief51b695c9b31941d929e06f16872f95eea3619b


[ROCm/clr commit: 9c873353cc]
2021-05-14 10:20:38 -04:00
Saleel Kudchadker 76847519e0 SWDEV-283726 - Indicate profiler attached
Set profiler attached flag in VirtualGPU to inform ROCclr of it

Change-Id: I776c9fcd762cf02f3ce0f3c386d02384a224126c


[ROCm/clr commit: 7b88ba5b57]
2021-05-12 13:40:47 -07:00
Sourabh Betigeri 75d3c6deb3 SWDEV-282354 - Some AMD GPUs cause clock64() to roll over faster, this changeset prevents infinite loops due to that.
Change-Id: I19d026073afa16104ffbee4705b74d37003a04d9


[ROCm/clr commit: 66b9a34f06]
2021-05-11 20:40:23 -04:00
Sourabh Betigeri 17c5725f28 SWDEV-281034 - Occupancy calculations for gfx10.3 adjustments based on available VGPRs, SIMDs per CU and number of waves per SIMD.
Change-Id: I0e34decebc9f730fe0e0c3c3258f301de5748e72


[ROCm/clr commit: ddff87b413]
2021-05-11 20:39:49 -04:00
Vladislav Sytchenko 7995ec9e38 SWDEV-273235 - Fix HIP PCH build
hip_rtc.cpp refers to the symbol __hipGetPCH(), but that one can only be
found in hip_global.cpp. It's not referenced anywhere else, hence it
should be moved.

Change-Id: Ifc67b2f3b1b8344dec0e6c30d083d62288fb5e24


[ROCm/clr commit: 20eff6c298]
2021-05-11 17:40:32 -04:00
Julia Jiang 992143919d SWDEV-282350 - Add managed memory support in HIP document
Change-Id: Iea4479058b4c40c36d71c9302834396a4088ac6f


[ROCm/clr commit: c68bff088b]
2021-05-11 16:04:46 -04:00
pghafari f0e63eb72f SWDEV-245532 - HIP - Vulkan interop semaphores
Change-Id: I89be5ee84d4728d76e1987d5016c944c0dbc9a96


[ROCm/clr commit: ccff5216f0]
2021-05-11 11:44:59 -04:00
Jason Tang 8532c31eb3 SWDEV-277566 - Add amd::Program::load interface
Change-Id: Iba32fd6add7b1c51b33a9ea899732044c0a064f6


[ROCm/clr commit: 744dfa6d9d]
2021-05-11 10:51:45 -04:00
Vladislav Sytchenko daa056f19d SWDEV-240806 - Fix Windows build
hipGraphAddHostNode and hipGraphAddMemcpyNode1D are not part of the HIP
graph implementation, hence they should not be exported.

Change-Id: Ia3d0188895fb4f64ebfa23d4a0a09c44438f878d


[ROCm/clr commit: 0782883cb3]
2021-05-11 10:07:49 -04:00
German Andryeyev bb785af04f SWDEV-240804 - HMM changes
- Accept hipMemAttachHost flag
- Don't allocate HMM memory if HMM is disabled in KFD

Change-Id: I3d386eb0a109a19c16a87a728944a3a6669f643a


[ROCm/clr commit: 5d8cafef2d]
2021-05-10 13:50:21 -04:00
Aaron En Ye Shi 3d40b92eeb SWDEV-283266 - __HIPCC_RTC__ macro added to HIP headers
For hipRTC on Windows, add macro __HIPCC_RTC__ to allow
online compilation of with device functions excluding standard
C/C++ headers, system headers, and host HIP APIs.

Change-Id: I1d91f042baf1359856ec83ab7030dc58785e0334


[ROCm/clr commit: 688693e9fd]
2021-05-10 17:28:07 +00:00
Julia Jiang 01f60915fb SWDEV-272921 - Remove non-existing link for square sample
Change-Id: If8c87a6ded6aacaa4301b1b80ee218897219a6fb


[ROCm/clr commit: 381503211a]
2021-05-10 12:09:28 -04:00
Anusha Godavarthy Surya 1fe1fe9361 SWDEV-240806 - Initial commit for hipGraph and stream capture infrastructure
On StreamBegincapture captures the parameters passed to APIs and respective node will be created and added to graph
All parameters are passed to STREAM_CAPTURE macro, it checks if stream in capture mode and redirects the call to the capture function and returns
Updated hipStream and hipEvent with capture parameters
Added handling for hipStreamBeginCapture & hipStreamEndCapture

Change-Id: Ic8926a7b4336c2cc81f0b3a9a224aa392c474134


[ROCm/clr commit: 8cc0e04239]
2021-05-07 17:38:16 -04:00
Ravi C Akkenapally abc42e8c5c SWDEV-281998 - TEST: StreamOperations : Split StreamWait and Update into two seperate threads
Change-Id: I0fda25857dd9f097f36ce1bafedb7689ca2beecc


[ROCm/clr commit: 44ac926b08]
2021-05-07 11:11:28 -07:00
Julia Jiang bb775c5c50 SWDEV-282350 - update HIP documents
Change-Id: Iff3a49e75279b1ecee0672a6d35f6b84a8256296


[ROCm/clr commit: 8f38d6f496]
2021-05-07 12:38:13 -04:00
Maneesh Gupta 789bcdf625 SWDEV-252801 - Fail if launch params exceeds launch_bounds
Change-Id: I90c8d0f1897ca63f00c3eec7c99d649a5c43416d


[ROCm/clr commit: 055a460f12]
2021-05-06 22:38:50 -07:00
German Andryeyev 2640dfc374 SWDEV-272496 - disable direct dispatch by default
Change-Id: I706387355add75852c570be2656131ef99e8958c


[ROCm/clr commit: df9de9a312]
2021-05-06 16:17:26 -04:00
Vladislav Sytchenko 7b73c26a29 SWDEV-273235 - Allow explicitly disabling LF support
Currently LiquidFlash cannot be supported from Github Enterprise,
hence we need to be able to build with out it.

Allow this by setting -DWITH_LIQUID_FLASH=0.

Change-Id: If59afe45c02a1623639360dbcc3927360f16ebd3


[ROCm/clr commit: ff3f6b2575]
2021-05-06 13:05:12 -04:00
Julia Jiang a3321e2b9e SWDEV-282350 - Adding hip_debugging
Change-Id: I18f52a76f88bcd3a0628030a6798d546a3973f4d


[ROCm/clr commit: e65317fd56]
2021-05-06 11:48:52 -04:00
Anusha GodavarthySurya 766c6fbdcb SWDEV-271978 - Function __byte_perm to match CUDA behavior
Selector indices are as follows (the upper 16-bits of the selector are not used): selector[0] = s<2:0> selector[1] = s<6:4> selector[2] = s<10:8> selector[3] = s<14:12>

Change-Id: Ibf76c6ec2374f1f5b9bba8bd9dbd73660f830eea


[ROCm/clr commit: e9cc056d25]
2021-05-05 03:00:32 -04:00
Christophe Paquot 18af8b7754 SWDEV-270599 - Refactored the way we get time from start/stop events in all cases
Change-Id: Id3f9bcad45d643e493daf9d5f47b3a032a427177


[ROCm/clr commit: f665936fe1]
2021-05-03 13:16:36 -07:00
Aaron En Ye Shi f6f8fa7787 SWDEV-283930 - Fix bugs in HIP Tests on Windows
Windows doesn't have headers unistd.h, sys/wait.h, so
remove them for _WIN64. Also, Windows doesn't have rand_r
so define it. Fixes builds for HIP tests:
d2dMemCpyWithPinnedHostMemory, hipMemset3DFunctional,
hipModuleLoadMultProcessOnMultGPU,
hipModuleLoadUnloadStress, hipModuleNegative,
hipStreamACb_ThrdBehaviour, hipMemcpyNegativeMThrdMSize,
hipStreamACb_MStrm_Mgpu, StreamAddCallback,
hipStreamACb_StrmSyncTiming, hipStreamACb_MultiCalls,
hipMallocConcurrency, hipMemset3DRegressMultiThread,
and hipSetGetDevice.

Change-Id: Id2f98d664716026c590d879e464ba467d4c071be


[ROCm/clr commit: bacb89c086]
2021-04-30 21:38:45 +00:00
kjayapra-amd d3ff861a37 SWDEV-245533 - Implementing Mipmap array APIs
Change-Id: I222c8d0fcbd50cdefd702462e689463bb36366d2


[ROCm/clr commit: 31d412c292]
2021-04-30 16:33:43 -04:00
agodavar 7e822c9041 SWDEV-283897 - SWDEV-283901 - Fix directed and performance test failure
Change-Id: Ia0e9ab5d172802403af7bf6568f985b82e799baf


[ROCm/clr commit: a2d4487cc6]
2021-04-30 17:56:44 +00:00
Jatin Chaudhary 60aa49e1d3 SWDEV-283959 - Make hipcc recognize -xc -xc++ -xhip options and add CXX flags when user mentiones filetype as -x hip
Change-Id: I737fba3db77eef21eb88ccf648b4134218249456


[ROCm/clr commit: 7941dedc45]
2021-04-30 04:58:07 -04:00
Satyanvesh Dittakavi 8d24a3fa09 SWDEV-278464 - Unit Test For Suspected race condition
Change-Id: I561ec3073a6e6813c5f7aa50983fcf098c6ac54a


[ROCm/clr commit: 710b0a904b]
2021-04-29 23:40:43 -04:00
Tao Sang 9ae3d42085 SWDEV-283515 - Fix crashing in kernel launch on MGPUS
Fix wrong mixing of current device and stream device in
ihipModuleLaunchKernel() and hipLaunchCooperativeKernel().

Fix missing hipSetDevice() in hipMemcpyWithStream* tests.

Change-Id: I09333bb40d239bb42c832df5ea16d17eeaeff5e7


[ROCm/clr commit: b99efb9d67]
2021-04-29 14:46:47 -04:00
Anton Gorenko 85a1ce9777 SWDEV-272536 - (PR-2229) Fix conversion of texture addressing mode
hipAddressModeClamp corresponds to CL_ADDRESS_CLAMP_TO_EDGE.
This change fixes incorrect sampling near texture edges.

https://github.com/ROCm-Developer-Tools/HIP/pull/2229

Change-Id: Ia2af9f3cb582a74af7b1f65bad1ed0310eab2628


[ROCm/clr commit: bcdfb0158b]
2021-04-29 12:19:15 -04:00
Satyanvesh Dittakavi 9e4b7ff5bb SWDEV-283388 - Fix hipMemRangeGetAttributes on Nvidia Platform
Change-Id: I5daeacd9dd5c6ce7f914d6e6e45dd41fb2a675a5
hipMemRangeGetAttributes was returning hipErrorInvalidValue due to improper
mapping of the arguments to cudaMemRangeGetAttributes.


[ROCm/clr commit: cc39ceab25]
2021-04-29 06:06:03 -04:00
cjatin 383d919730 SWDEV-277903 - Add HIP_ROCCLR_HOME under HIP_PLATFORM==amd
Change-Id: I00e156eb0a51f505300e288af59a0cf39b606e26


[ROCm/clr commit: 4f0e8fc382]
2021-04-29 03:08:34 -04:00
Satyanvesh Dittakavi 73fb93ac2a SWDEV-283213 - Fix hipMemset2D, 3D failures in Debug mode
If the width is 0, hipMemset2D or 3D APIs should return success
doing nothing
Change-Id: I97f8825d090a73ee63145e52d2b6d2cc0eddade3

Change-Id: I9d62fee70929ad0c79b947aa4cbbc8ab898fb64a


[ROCm/clr commit: f845041f7d]
2021-04-28 18:53:53 -04:00
Rahul Garg eff8e6575c SWDEV-266973 - Add missing HIP_RETURN
Change-Id: Ib569a8cb030179b71406d47fd08c7e1e7ab6eb7c


[ROCm/clr commit: 47fe205223]
2021-04-27 19:55:28 -04:00
Rahul Garg 9a4c6b4d73 SWDEV-280672 - Support HIP_PLATFORM=hcc in hipcc with warning
Change-Id: I6b199ea5ebed828a7f82c20d50fdf0fcfb887a64


[ROCm/clr commit: 78b926d48d]
2021-04-27 19:53:56 -04:00
Aaron En Ye Shi 3a319aa734 SWDEV-222423 - Add HIP Sample 2_Cookbook/15_static_library
HIP supports emitting two types of static libraries. One type
will export host functions and is compatible with host linkers.
The second type exports device functions, but is generated with
ar manually. Also, add a README with steps on how to run these
samples with Makefile or CMake.

Change-Id: I1be15c2884583b370092bc8e4bf04f726f8f5a27


[ROCm/clr commit: b462310394]
2021-04-27 16:05:15 -04:00
Julia Jiang 46c8824652 SWDEV-208837 - add host allocation Numa aware
Change-Id: I9516b1a7411695d22038e0a3657822ee453ed709


[ROCm/clr commit: f0f0c85e72]
2021-04-27 10:45:57 -04:00
Satyanvesh Dittakavi 0622e6d63b SWDEV-281062 - Modify the IPC tests
Remove hipSimpleIpcMem.cpp as the IPC APIs are expected to work
with different processes and not the same process. Also, modify
the hipMultiProcIpcMem.cpp to test the offset scenarios
Change-Id: Ia161fc9ab39e27f22d8ef7268e0d7669ece5cdce

Change-Id: Ic3cb79ef4aca40b4a504483eb81fd83bb8a201d9


[ROCm/clr commit: 991ab72d5f]
2021-04-27 01:19:08 -04:00
German Andryeyev d01cfbc1cc SWDEV-240804 - Check the managed capability
Some system have HMM disabled. Check the capability before running the test.

Change-Id: I098d04d87c12ec317b4cb57e121e702b6bba03bc


[ROCm/clr commit: 17f32d4508]
2021-04-26 14:10:57 -04:00
German Andryeyev 04087d9be8 SWDEV-244287 - Keep direct dispatch for Linux only
Change-Id: I09333bb40d239cb42c732df5ea16d17eeaeff5e6


[ROCm/clr commit: bae93cc42d]
2021-04-26 14:10:57 -04:00
Satyanvesh Dittakavi 59c118bb57 SWDEV-281789 - Add missing HMM attributes on CUDA path
Change-Id: I11167eea006301e01a1f91708bf6d0ac832d8b7f


[ROCm/clr commit: 120436423c]
2021-04-26 13:54:01 -04:00
Yaxun (Sam) Liu e04783afe7 SWDEV-255234 - remove workaround for warpSize after clang fix is released
The workaround is no longer needed as the compiler emits the macro itself.

Change-Id: I6a06e73353628bcea71f6bd23503ab6d8e42a29d


[ROCm/clr commit: 37b90c2f64]
2021-04-26 08:49:15 -04:00
German Andryeyev 85d9fae70c SWDEV-244287 - enable direct dispatch by default
Change-Id: If506566624a218a2dd443b794c5c400bd0b9ebf7


[ROCm/clr commit: 678b1225e8]
2021-04-24 02:33:46 -04:00
DURGESH KROTTAPALLI 1d59f43b6c SWDEV-273550 - Add Directed Tests for HIP APIs
[dtest] Tests for hipMemcpy2DFromArray
        and hipMemcpy2DFromArrayAsync APIs

1. Negative scenarios for both the APIs
2. Functional size check scenarios for both APIs
3. Invoke the API from Peer Device Context
4. Simple scenarios for both APIs
5. Pinned Host Memory from same & multi GPU

Change-Id: I80c84ec3f9722d18683d31be65caa1bd64054da6


[ROCm/clr commit: f9d422bcbd]
2021-04-23 13:07:08 -04:00
Sarbojit Sarkar d2e070dfd7 SWDEV-282405 - Fix for rocFFT build issue
Change-Id: I39d1823ac6ea1d61610b9ff9153a6d0e91426fc8


[ROCm/clr commit: ed83033470]
2021-04-23 01:18:56 -04:00
Yaxun (Sam) Liu 255a1d6e96 SWDEV-283048 - Fix hipTestFMA
This test is incorrect about _Float16 overloading. Need to keep the test
passing for both old and new compiler until the compiler change is in
mainline.

Change-Id: I2f9be8957282fd0579c74f1e9f23e65c4484f3a2


[ROCm/clr commit: 932d34dc6e]
2021-04-22 15:07:16 -04:00