Commit Graph

13453 Commits

Author SHA1 Message Date
Evgeny Mankov 275bafea76 [HIPIFY] Fix warnings on unhandled refs.
CUstream_st -> hipStream_t *
CUevent_st -> hipEvent_t * (fixed, was -> hipEvent_t)

Warning:
[HIPIFY] warning: the following reference is not handled: 'CUstream_st' [struct var ptr]. (thrust/examples/cuda/async_reduce.cu)


[ROCm/clr commit: ce2daa53fb]
2017-02-14 17:23:09 +03:00
Evgeny Mankov b40a8f54c5 [HIPIFY] Narrow cudaKernelCallExpr matcher.
[Explanation]
Narrow cudaKernelCallExpr matcher to isExpansionInMainFile() - to the file being actually converted (without system includes).
But as for Thrust, there are *.inl files, which are nevertheless being expanded in main file.
These files contain cuda kernel launches, which are not converted successfully by hipify, for instance:
thrust/system/cuda/detail/detail/launch_closure.inl:98:23.

[ToDo]
File a bug on cudaKernelCallExpr matcher for conversion error (thrust\examples\cuda\<any cu example>).


[ROCm/clr commit: afe6073d3f]
2017-02-14 16:28:05 +03:00
foreman 12278fc58d P4 to Git Change 1372984 by johtaylo@johtaylo-jtincrementor-increment on 2017/02/14 03:00:04
SWDEV-2 - Change OpenCL version number from 2363 to 2364.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2110 edit


[ROCm/clr commit: dac73aedce]
2017-02-14 03:38:13 -05:00
Evgeny Mankov 8c0f19aa7a [HIPIFY] Minor refactoring
+ insertHipHeaders function is added to Cuda2Hip class;
+ fix replacement ending for hip header.


[ROCm/clr commit: e5c601df45]
2017-02-13 18:13:49 +03:00
Maneesh Gupta c7b52142ae Generate package config for cmake
Change-Id: I73a0b21361bbe29e095dc515bdc70588ec722d57


[ROCm/clr commit: 57f7f4660a]
2017-02-13 16:01:50 +05:30
Paul 7476e0bfb5 Set hip version correctly
[ROCm/clr commit: f1f01ceb63]
2017-02-13 15:57:10 +05:30
foreman d5e588fa70 P4 to Git Change 1372187 by johtaylo@johtaylo-jtincrementor-increment on 2017/02/11 03:00:04
SWDEV-2 - Change OpenCL version number from 2362 to 2363.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2109 edit


[ROCm/clr commit: e285312a80]
2017-02-11 03:11:26 -05:00
foreman eaa26a485f P4 to Git Change 1372024 by jatang@jatang-opencl-hsa-stg2 on 2017/02/10 15:39:38
SWDEV-99150 - Update ORCA PerfCounter enum conversion to PAL.

	PAL changes its PerfCounter enum in palPerfExperiment.h since version 236.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palcounters.cpp#8 edit


[ROCm/clr commit: a0a0264526]
2017-02-10 16:37:16 -05:00
Aditya Atluri 25210492b0 v3: added free for ihipModuleSymbol_t structures inside tracker
Change-Id: Ib8041a05312c08cbdf2d4fee5e7cbae17df6efff


[ROCm/clr commit: 1cffe49775]
2017-02-10 13:42:10 -06:00
Aditya Atluri 3577c19d66 v2: Fixed hipModule memory management
1. Changed test to assert for same hipFunction values
2. Added better memory management for hipModule

Change-Id: I10d7aef13c215a2211e262f3c79017f26a17d9a7


[ROCm/clr commit: 554fe191e1]
2017-02-10 13:32:13 -06:00
Evgeny Mankov 7ae02955f7 [HIPIFY] 'CHANGED LOC', 'TOTAL LOC' and 'CODE CHANGED (in lines)' are added to statistics.
[ROCm/clr commit: 25d4de9e95]
2017-02-10 22:02:41 +03:00
foreman 557bac6a72 P4 to Git Change 1371699 by johtaylo@johtaylo-jtincrementor-increment on 2017/02/10 03:00:04
SWDEV-2 - Change OpenCL version number from 2361 to 2362.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2108 edit


[ROCm/clr commit: bafae3a8bd]
2017-02-10 02:16:48 -06:00
Maneesh Gupta ab2942538d Build libhip_hcc.so as a fat binary
Change-Id: Ie4f334d8f9576edf5df0f917f72083d7842eb193


[ROCm/clr commit: 3967ece8dd]
2017-02-10 10:32:04 +05:30
Aditya Atluri 5f8799a0a2 fixed shared memory usage implementation for hipDynamicShared2.cpp test
Change-Id: I34c72cb905f78de0f37e94174382e8be5c532028


[ROCm/clr commit: 307a21c946]
2017-02-09 18:17:42 -06:00
Aditya Atluri c5bcf5c096 added new dynamic shared mem test
Change-Id: Ic2a12fc9bc5b67e85f1e6c6008f10c7c66388377


[ROCm/clr commit: d6b5c02862]
2017-02-09 18:07:48 -06:00
Aditya Atluri 6c76483ac8 fixed hipFunction memory management
Change-Id: I7ebb323419bcd220ebd6466a8eb38e7bfdb1520a


[ROCm/clr commit: 6110fcdfb6]
2017-02-09 17:22:55 -06:00
foreman 4522c56556 P4 to Git Change 1371318 by asalmanp@asalmanp-opencl-stg on 2017/02/09 12:22:12
SWDEV-107075 - [OCL][VG10] Conformance RQ Mipmaps tests are failing. Adding the below changes to fix the failures

	- For 1Darray images the Height should be 1 and we should use the correct value for "numSlices" in copyRegion
	- For 2Darray images the Depth should be 1 and we should use the correct value for "numSlices" in copyRegion
	- The right Height should be used when gpuMemoryDepthPitch is calculated

	Also, PAL was not obeying the "numSlices" parameter for SDMA-based memory <--> image or image <--> image copies and this issue is fixed in CL#1369626.

	The current changes in OCL runtime will be submitted into stg once the above CL from PAL gets promoted into OCL stg.

	ReviewBoardURL = http://ocltc.amd.com/reviews/r/12260/

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palresource.cpp#24 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palsettings.cpp#17 edit


[ROCm/clr commit: df5aae929a]
2017-02-09 12:53:47 -05:00
Maneesh Gupta 7a146c9d3d Update hip_hcc packaging script
Change-Id: I2dc96545c472942bcf2bc8a2e88735f3ba26d1e1


[ROCm/clr commit: 7f62529b1f]
2017-02-09 20:28:28 +05:30
Maneesh Gupta 90a03f8684 Disable failing directed tests
- hipTestDeviceSymbol
- hipTestConstant
- hipTestMallocKernel

Change-Id: Ibfe9fc0b8a59882f1de64b42e18777a7bd56ee97


[ROCm/clr commit: 6659eb8d16]
2017-02-09 14:48:22 +05:30
Maneesh Gupta 2b6171816d Fix arch specific hcc extra libs env var
Change-Id: I7429da2f1cb98750d6a9601e7e5bde844a098487


[ROCm/clr commit: 71363810dd]
2017-02-09 14:38:39 +05:30
foreman 657bf0f375 P4 to Git Change 1371152 by johtaylo@johtaylo-jtincrementor-increment on 2017/02/09 03:00:05
SWDEV-2 - Change OpenCL version number from 2360 to 2361.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2107 edit


[ROCm/clr commit: 5dc87aa5f5]
2017-02-09 03:14:31 -05:00
Aditya Atluri ba45e02007 added architecture specific macros
1. Added __HIP_ARCH_GFXNUM__
2. Usage, -D__HIP_ARCH_GFX803__=1

Change-Id: I68b3a85d62cfab3a45d2b7a70cb3518ab2565236


[ROCm/clr commit: c6c90f6f5a]
2017-02-08 19:45:32 -06:00
pensun b411549397 Add pseudo code example for hip_bugs.md
Change-Id: Ia2af8e6165faeb3fbb81428e20d4dc5b19b2fa9e


[ROCm/clr commit: f2bfc8a405]
2017-02-08 16:20:01 -06:00
Aditya Atluri 76a58521f5 fixed hipcc for new compiler flags
Change-Id: I49ec059be20ff26b7482c84d91ab7a43826c6a8d


[ROCm/clr commit: 400d0d4f78]
2017-02-08 14:06:01 -06:00
Aditya Atluri 248b42d3e3 include arch specific ir on fallback path
Change-Id: Ib04996aae2c21eb73ef2a9f6305915e0caccd704


[ROCm/clr commit: 26b5e57cfd]
2017-02-08 12:19:06 -06:00
Aditya Atluri 14dcdff8f4 Fixed Hawaii link issues
1. Split hip_ir.ll to hip_hc.ll and hip_hc_gfx803.ll
 a. hip_hc.ll contains arch generic ir implementations
 b. hip_hc_gfx803.ll contains gfx803 (fiji, polaris) specific ir
2. HIPCC can now parse --amdgpu-target=*.
 a. Usage: hipcc --amdgpu-target=gfx803 --amdgpu-target=gfx701
 b. TODO: Convert to --amdgpu-target=gfx803,gfx701
3. With LLC in HCC able to generate native f16 isa, removed inline half asm math ops
4. Fixed threadfence and threadfence_block to use functions in rocdl

Change-Id: Ic9a9e3e04139b0d75d2c2a263c030ca77adc1019


[ROCm/clr commit: 60ec83c683]
2017-02-08 12:04:05 -06:00
Evgeny Mankov 2cef50ac30 [HIPIFY] Readme.md update.
[ROCm/clr commit: cc8a7f3d3e]
2017-02-08 19:50:05 +03:00
Evgeny Mankov 508311dafe [HIPIFY] Readme.md update.
+ Launching example.
+ Delimiter "--" is strongly recommended.
+ "-x cuda" option is mentioned as well.


[ROCm/clr commit: b3098091fd]
2017-02-08 19:43:32 +03:00
foreman aa891c0385 P4 to Git Change 1370604 by johtaylo@johtaylo-jtincrementor-increment on 2017/02/08 03:00:09
SWDEV-2 - Change OpenCL version number from 2359 to 2360.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2106 edit


[ROCm/clr commit: a7f69bff2b]
2017-02-08 03:11:12 -05:00
foreman 1de65a1948 P4 to Git Change 1370387 by wchau@wchau_OCL_boltzmann on 2017/02/07 17:00:35
SWDEV-103424 - [ROCm CQE][OCL] OCLRuntime - OCLCreateBuffer tests are failing.  The failure is due to AQL cannot support global size > 32bit range.  Adding dispatch split support for ROCm, similar to that of GSL (CL#1159349), to resolve the issue.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rockernel.hpp#13 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.cpp#56 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocvirtual.cpp#31 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocvirtual.hpp#8 edit
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/runtime/OCLCreateBuffer.cpp#6 edit


[ROCm/clr commit: dadd21fced]
2017-02-07 17:13:15 -05:00
Aditya Atluri d191eac0e2 Fixed HIP for C runtime
1. fixed constant memory test
2. added runtime gcc/g++ test
3. added fix for runtime with gcc/g++

Change-Id: Ie14dad6633411b188bdeea044e140b6d5beabe16


[ROCm/clr commit: be6d01ebc3]
2017-02-07 13:15:36 -06:00
Aditya Atluri 110303c087 fixed vector types for c
Change-Id: I2330e976060f9a038929cd51be07ae2ee98e81ce


[ROCm/clr commit: 6d8007e28c]
2017-02-07 11:09:54 -06:00
Rahul Garg 1b11b60e9d Command scripts for latency measurements
Change-Id: I8c28765a09fb0358447367939de524b12699a317


[ROCm/clr commit: 73b56e690f]
2017-02-07 15:03:46 +05:30
foreman 7077128e0b P4 to Git Change 1369977 by johtaylo@johtaylo-jtincrementor-increment on 2017/02/07 03:00:07
SWDEV-2 - Change OpenCL version number from 2358 to 2359.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2105 edit


[ROCm/clr commit: ef61b25945]
2017-02-07 03:10:20 -05:00
foreman 08a43a240b P4 to Git Change 1369850 by gandryey@gera-w8 on 2017/02/06 18:15:17
SWDEV-112661 - [ROCm CQE][OCLonLC][QR][G] 80 failures observed with Images(Samplerless and Samplerless pitch) tests
	- Make sure the pitch for image buffer is properly aligned to the reported device info

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocmemory.cpp#10 edit


[ROCm/clr commit: c9cbcbf0f5]
2017-02-06 18:22:59 -05:00
foreman 18da2685da P4 to Git Change 1369662 by gandryey@gera-w8 on 2017/02/06 13:52:13
SWDEV-112171 - [ROCm CQE][OCLonLC][QR][G] System hangs/Failures observed with few WF conf tests, due to CL#1364923
	- reenable HSA copy in ROCr, since OCL copy doesn't really fix the hang issue in integer_ops, but just delays it.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocvirtual.cpp#30 edit


[ROCm/clr commit: 064f21aa74]
2017-02-06 14:08:48 -05:00
foreman 20daef2a8e P4 to Git Change 1369504 by johtaylo@johtaylo-jtincrementor-increment on 2017/02/06 03:00:04
SWDEV-2 - Change OpenCL version number from 2357 to 2358.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2104 edit


[ROCm/clr commit: df6f6de805]
2017-02-06 03:14:54 -05:00
Maneesh Gupta c072d54c50 Disable broken test: hipC
Change-Id: I061aa125bbdc9f14bc870266ab0735593c861903


[ROCm/clr commit: 0bef861f1a]
2017-02-06 13:00:50 +05:30
foreman d21a308c20 P4 to Git Change 1369347 by johtaylo@johtaylo-jtincrementor-increment on 2017/02/05 03:00:10
SWDEV-2 - Change OpenCL version number from 2356 to 2357.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2103 edit


[ROCm/clr commit: 3d78cc9365]
2017-02-05 03:10:19 -05:00
foreman ca7a01716b P4 to Git Change 1369315 by johtaylo@johtaylo-jtincrementor-increment on 2017/02/04 03:00:04
SWDEV-2 - Change OpenCL version number from 2355 to 2356.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2102 edit


[ROCm/clr commit: 6a684f91a6]
2017-02-04 03:15:20 -05:00
foreman a5e2d28f34 P4 to Git Change 1369302 by todli@todli-win-opencl-kv1 on 2017/02/04 00:49:06
SWDEV-107271 - Fix crash that happens when Resource::create() fails and "owner" gets cleared. This is only triggered by Conformance test Basic progvar_prog_scope_misc on Raven with 16GB memory (8GB is fine), but should be a general bug.
	http://ocltc.amd.com/reviews/r/12253

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palmemory.cpp#11 edit


[ROCm/clr commit: c2ca879dec]
2017-02-04 00:59:54 -05:00
foreman 84217acb21 P4 to Git Change 1369163 by todli@todli-win-opencl-kv1 on 2017/02/03 17:19:46
SWDEV-96241 - fix OpenCL/LC build failure

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.cpp#43 edit


[ROCm/clr commit: 28f7b5b678]
2017-02-03 17:29:15 -05:00
Aditya Atluri 3937b398e9 changed __global__ attribute
1. Moved around tests and added them to HIT

Change-Id: I5d75280c42a5af852670ebabc7305ee56721ec7b


[ROCm/clr commit: f009f3533d]
2017-02-03 10:53:36 -06:00
foreman 41f7a9f955 P4 to Git Change 1368828 by johtaylo@johtaylo-jtincrementor-increment on 2017/02/03 03:00:04
SWDEV-2 - Change OpenCL version number from 2354 to 2355.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2101 edit


[ROCm/clr commit: 5615f44274]
2017-02-03 03:10:56 -05:00
foreman fcf63c43c8 P4 to Git Change 1368703 by todli@todli-win-opencl-kv1 on 2017/02/02 18:12:31
SWDEV-96241 - Support SDI on PAL (runtime changes)

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palmemory.cpp#10 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palresource.cpp#23 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palsettings.cpp#16 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.cpp#42 edit


[ROCm/clr commit: 1eda218988]
2017-02-02 18:23:12 -05:00
foreman 3db14ee4cb P4 to Git Change 1368336 by johtaylo@johtaylo-jtincrementor-increment on 2017/02/02 03:00:03
SWDEV-2 - Change OpenCL version number from 2353 to 2354.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2100 edit


[ROCm/clr commit: 917f2935ed]
2017-02-02 03:15:42 -05:00
Aditya Atluri f36992067b fixed symbol memcpy issue
Change-Id: I89d7401be51d194bcbf771020ba66e3d3b6a18f8


[ROCm/clr commit: 0d4e6ae60a]
2017-02-01 17:54:59 -06:00
foreman 73fe771169 P4 to Git Change 1368253 by gandryey@gera-w8 on 2017/02/01 18:29:08
SWDEV-112352 - [ROCm CQE][OCLonLC][QR][G] Aborted/Segmentation fault is observed with "sub_buffers_read_write_dual_devices" of Buffers, due to CL#1364923
	- Keep system memory for multiple devices in case of possible initialization on the second device

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#41 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocmemory.cpp#9 edit


[ROCm/clr commit: a10c33ad77]
2017-02-01 18:39:14 -05:00
foreman d53338df44 P4 to Git Change 1367969 by gandryey@gera-lnx-rcf-lc on 2017/02/01 11:53:10
SWDEV-112171 - [ROCm CQE][OCLonLC][QR][G] System hangs/Failures observed with few WF conf tests, due to CL#1364923
	- Disable ROCr copy buffer and use runtime kernel to avoid  HW hangs in integer_ops.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/blit.hpp#3 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocblit.cpp#12 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocvirtual.cpp#29 edit


[ROCm/clr commit: c0d4edda9d]
2017-02-01 12:03:40 -05:00
foreman b71d37e251 P4 to Git Change 1367952 by gandryey@gera-w8 on 2017/02/01 11:11:26
SWDEV-112171 - [ROCm CQE][OCLonLC][QR][G] System hangs/Failures observed with few WF conf tests, due to CL#1364923
	- Back out changelist 1367810. A hang was delayed, but still occured much later in the test.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocblit.cpp#11 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#40 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.hpp#16 edit


[ROCm/clr commit: c36d89754a]
2017-02-01 11:21:13 -05:00