Commit Graph

13474 Commits

Author SHA1 Message Date
emankov c65338fbf7 [HIPIFY] Introduce option -o-dir
Option -o-dir for output directory:
  + if not specified source file(s) directory is used;
  + creates the directory if the directory doesn't exist (only one level in a tree);
  + if -o and -o-dir both are specified the hipified file is placed to "-o-dir" + "-o";
  + reports an error in case of a wrong directory specified, in case of necessity of creating a tree of subfolders, or in case of a filename specified.
2018-12-26 16:30:41 +03:00
Jenkins 064340d263 Merge 'master' into 'amd-master'
Change-Id: I999b2c995274cd6ea8b9680cf86ab2b0e3b7191d
2018-12-26 04:09:43 -06:00
Evgeny Mankov 3cf4df4571 Merge pull request #829 from emankov/master
[HIPIFY][#812] Finishing with temps
2018-12-25 18:39:12 +03:00
foreman b08c8a2f47 P4 to Git Change 1723893 by chui@ocl-promo-incrementor on 2018/12/25 03:00:25
SWDEV-2 - Change OpenCL version number from 2802 to 2803.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2550 edit
2018-12-25 03:10:42 -05:00
foreman 7c957b67dc P4 to Git Change 1723780 by chui@ocl-promo-incrementor on 2018/12/24 03:00:27
SWDEV-2 - Change OpenCL version number from 2801 to 2802.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2549 edit
2018-12-24 03:23:31 -05:00
foreman b1b2b85d8a P4 to Git Change 1723669 by kzhuravl@kzhuravl-fiji-ocllc-2 on 2018/12/23 13:22:07
SWDEV-173685 - Fix retrieval of required work group size metadata

	Pre-checkin: http://ocltc.amd.com:8111/viewModification.html?modId=113287&personal=true&init=1&tab=vcsModificationBuilds
	Review: http://ocltc.amd.com/reviews/r/16377/

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/devkernel.hpp#12 edit
2018-12-23 13:33:47 -05:00
foreman d11f7ccd31 P4 to Git Change 1723630 by chui@ocl-promo-incrementor on 2018/12/22 03:00:25
SWDEV-2 - Change OpenCL version number from 2800 to 2801.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2548 edit
2018-12-22 03:10:53 -05:00
emankov 7cac7dbfea [HIPIFY][#812] Finishing with temps
1. Option -temp-dir for temporary directory:
  + if not specified system temp is used;
  + creates the directory if the directory doesn't exist (only one level in a tree);
  + reports an error in case of a wrong directory specified, in case of necessity of creating a tree of subfolders, or in case of a filename specified.
2. Option -save-temps for preserving temporary files:
  + if specified temporary files are not being deleted from system temps and user temps as well.
3. Work with files in terms of calculated absolute paths by collapsing all '.' and '..' patterns, resolving symlinks and expanding '~' expression to the user's home directory:
  + to produce correct include paths;
  + to avoid possible errors on file routines.
2018-12-22 00:47:19 +03:00
foreman 0b238e4420 P4 to Git Change 1723529 by lmoriche@lmoriche_opencl_dev2 on 2018/12/21 14:55:55
SWDEV-174895 - OCL generic changes and code clean-up
	- Rename the AMDGCN builtins libraries to be compatible with comgr.

Affected files ...

... //depot/stg/opencl/drivers/opencl/compiler/comgr/lib/comgr/src/comgr-device-libs.cpp#3 edit
... //depot/stg/opencl/drivers/opencl/library/build/Makefile.library#73 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/devprogram.cpp#24 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/CMakeLists.txt#17 edit
2018-12-21 15:24:27 -05:00
Evgeny Mankov 33d4018c67 Merge pull request #825 from emankov/master
[HIPIFY][fix][#824] Fix the bug with -inplace option
2018-12-21 18:37:15 +03:00
foreman 46d8598e55 P4 to Git Change 1723373 by chui@ocl-promo-incrementor on 2018/12/21 03:00:56
SWDEV-2 - Change OpenCL version number from 2799 to 2800.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2547 edit
2018-12-21 03:10:41 -05:00
foreman 8d9283fd5d P4 to Git Change 1723115 by gandryey@gera-w8 on 2018/12/20 15:12:36
SWDEV-174551 - [CQE OCL][QR][DTB-Blocker] 7 tests are failing in Conformance | Faulty CL#1720236
	- Back out changelist 1720236. Conformance swaps RGB to BGR components  and fails if real RGB is used. OCL can't switch to RGB until a fix into the conformance tests will be applied.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldefs.hpp#46 edit
2018-12-20 16:19:39 -05:00
emankov cb598445f5 [HIPIFY][fix][#824] Fix the bug with -inplace option
+ Do temp file copying instead of renaming
+ Replace all file routine functions with LLVM's
+ Do not output hipified file in case of errors
2018-12-20 20:43:50 +03:00
foreman 6f129de758 P4 to Git Change 1722999 by gandryey@gera-w8 on 2018/12/20 12:07:51
SWDEV-79445 - OCL generic changes and code clean-up
	- Use dynamic LC switch for denorms

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palsettings.cpp#64 edit
2018-12-20 12:37:44 -05:00
Evgeny Mankov 10faf729fa Merge pull request #822 from emankov/master
[HIPIFY] Add the legal right comment to all the sources
2018-12-20 18:53:09 +03:00
emankov 340550cc56 [HIPIFY] Add the legal right comment to all the sources 2018-12-20 18:47:57 +03:00
Evgeny Mankov 41867c6753 Merge pull request #816 from emankov/master
[HIPIFY] Temporary files in system temps introducing
2018-12-20 18:28:53 +03:00
foreman 636d9275c4 P4 to Git Change 1722768 by chui@ocl-promo-incrementor on 2018/12/20 03:00:24
SWDEV-2 - Change OpenCL version number from 2798 to 2799.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2546 edit
2018-12-20 03:23:25 -05:00
Rahul Garg 10d2a9a269 Remove redundant arguments from hipMemset3D test 2018-12-20 06:51:22 +05:30
foreman 172e8b7e89 P4 to Git Change 1722571 by gandryey@gera-w8 on 2018/12/19 16:37:51
SWDEV-79445 - Back out changelist 1722556
	- More changes are necessary on ROCm backend to support a dynamic switch between HSAIL and LC

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#107 edit
2018-12-19 17:18:55 -05:00
foreman 908d6f0ad0 P4 to Git Change 1722556 by gandryey@gera-w8 on 2018/12/19 16:17:02
SWDEV-79445 - OCL generic changes and code clean-up
	- Change the compilation path base on variable

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#106 edit
2018-12-19 16:49:05 -05:00
foreman c8cd6e607e P4 to Git Change 1722452 by skudchad@skudchad_test2_win_opencl on 2018/12/19 13:24:25
SWDEV-145570 - Use Subwindow copy SDMA for D->H and H->D copies if possible or fall back to linebyline copies if unalinged pitch.
	- Set correct flags for SVM finegrain buffer for ROC backend

	ReviewBoardURL = http://ocltc.amd.com/reviews/r/16353/diff/

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocblit.cpp#27 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocmemory.cpp#41 edit
2018-12-19 13:46:12 -05:00
Stanley Tsang ca56b81ebf Adding support in the hipify-perl tool for the HIP_SYMBOL macro, which is required for hip API calls involving a device symbol. Added more explicit mention of the HIP_SYMBOL macro in the porting guide. 2018-12-19 12:21:02 -05:00
foreman b68842f1f3 P4 to Git Change 1722219 by chui@ocl-promo-incrementor on 2018/12/19 03:00:27
SWDEV-2 - Change OpenCL version number from 2797 to 2798.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2545 edit
2018-12-19 03:23:12 -05:00
Yaxun Sam Liu 02deeadaa4 Add default arguments for hipConfigureCall 2018-12-18 15:48:21 -05:00
Aaron Enye Shi 2d50392c17 Add *_rn functions back into HIP intrinsics
Add back the round-to-nearest-even intrinsics back to HIP math
intrinsics as it caused regression.
2018-12-18 19:31:54 +00:00
foreman d6ac06b4e5 P4 to Git Change 1721539 by chui@ocl-promo-incrementor on 2018/12/18 03:00:22
SWDEV-2 - Change OpenCL version number from 2796 to 2797.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2544 edit
2018-12-18 03:15:44 -05:00
foreman e40b93484f P4 to Git Change 1721185 by wchau@wchau_OCL_boltzmann on 2018/12/17 13:43:56
SWDEV-162389 - OpenCL Support for COMgr
	- fixing bug of using incorrect included header file name

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/devprogram.cpp#23 edit
2018-12-17 14:02:16 -05:00
Evgeny Mankov 1180928408 [HIPIFY] Temporary files in system temps introducing
+ Files are not being placed near original source before hipification anymore, system tmp is used for them now.
+ Additional include (-I) to absolute original source dir is added
+ Partially implements #812
+ Tested on windows/linux, single/multiple inputs, with and without includes to user header files
2018-12-17 20:48:48 +03:00
foreman 52521593be P4 to Git Change 1720805 by chui@ocl-promo-incrementor on 2018/12/15 03:00:52
SWDEV-2 - Change OpenCL version number from 2795 to 2796.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2543 edit
2018-12-15 03:14:16 -05:00
foreman 70e36f8299 P4 to Git Change 1720794 by wchau@wchau_OCL_boltzmann on 2018/12/14 23:45:05
SWDEV-79445 - OCL generic changes and code clean-up
	- Allow ROCM build within the same workspace as PAL. Please note that ROCM defualt path in this case  will be HSAIL.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#105 edit
2018-12-14 23:58:11 -05:00
foreman 3b75ae4ff0 P4 to Git Change 1720436 by asalmanp@asalmanp-ocl-stg on 2018/12/14 10:27:28
SWDEV-132899 - [OCL][GFX10] correctly set the wavefrontWidth_ for gfx10.
	PAL reprots 64 for wavefrontSize so set it to 32 if the below conditions are met:
	1- if we are in HSAIL path and GPU_FORCE_WAVE_SIZE_32 is set
	2- or if we are in LC path andAsic is Navi10Plus

	ReviewRequestURL = http://ocltc.amd.com/reviews/r/16329/

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#120 edit
2018-12-14 10:44:43 -05:00
Evgeny Mankov 637bf7eb6f Merge pull request #809 from emankov/master
[HIPIFY][fix] Fix for the rest of found bugs in Statistics
2018-12-14 15:21:53 +03:00
foreman 84226e036d P4 to Git Change 1720329 by chui@ocl-promo-incrementor on 2018/12/14 03:00:54
SWDEV-2 - Change OpenCL version number from 2794 to 2795.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2542 edit
2018-12-14 03:11:15 -05:00
foreman 57f2e64df3 P4 to Git Change 1720254 by wchau@wchau_OCL_boltzmann on 2018/12/13 20:24:53
SWDEV-162389 - OpenCL Support for COMgr
	- fixing two bugs that (1) destroying an non-existant comgr object, (2) missing "+xnack" in target triple for Raven

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/devkernel.cpp#17 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/devprogram.cpp#22 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/devprogram.hpp#14 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rockernel.cpp#47 edit
2018-12-13 20:36:31 -05:00
foreman f874108c45 P4 to Git Change 1720236 by gandryey@gera-w8 on 2018/12/13 18:07:26
SWDEV-172784 - No Video playback while 10 bit pixel format is enable
	- Correct the channel's order for RGB10

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldefs.hpp#45 edit
2018-12-13 18:38:40 -05:00
foreman 4220039a82 P4 to Git Change 1720181 by gandryey@gera-w8 on 2018/12/13 16:49:07
SWDEV-79445 - COMGR update
	- Use full names for dll/lib load, since not all paths in loadLibrary() can recognize short names.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/comgrctx.cpp#2 edit
2018-12-13 17:06:43 -05:00
foreman f33100cf45 P4 to Git Change 1720088 by gandryey@gera-w8 on 2018/12/13 14:29:40
SWDEV-162389 - Switch to dynamic COMGR load

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/build/Makefile.api#181 edit
... //depot/stg/opencl/drivers/opencl/opencldefs#240 edit
... //depot/stg/opencl/drivers/opencl/runtime/build/Makefile.runtime#78 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/comgrctx.cpp#1 add
... //depot/stg/opencl/drivers/opencl/runtime/device/comgrctx.hpp#1 add
... //depot/stg/opencl/drivers/opencl/runtime/device/device.cpp#239 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/device.hpp#328 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/devkernel.cpp#16 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/devkernel.hpp#11 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/devprogram.cpp#21 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/devprogram.hpp#13 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#119 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#104 edit
2018-12-13 15:22:06 -05:00
Evgeny Mankov 1e30cd3ea7 [HIPIFY][fix] Fix for the rest of found bugs in Statistics
+ Signs of the converted file are extended
+ Total converted lines and total elapsed time are fixed
+ Zero rates are excluded from statistics
2018-12-13 18:35:45 +03:00
Evgeny Mankov a5d25a9c5d Merge pull request #802 from emankov/master
[HIPIFY][fix] Fix for #801
2018-12-13 14:40:00 +03:00
Jenkins b919bba21c Merge 'master' into 'amd-master'
Change-Id: I891d51cb8a77b99f460d9bf4c51c7f809bd47cc7
2018-12-13 04:09:49 -06:00
foreman e56c8c6a8e P4 to Git Change 1719758 by chui@ocl-promo-incrementor on 2018/12/13 03:00:20
SWDEV-2 - Change OpenCL version number from 2793 to 2794.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2541 edit
2018-12-13 03:14:14 -05:00
foreman af97ec86ad P4 to Git Change 1719658 by wchau@wchau_OCL_boltzmann on 2018/12/12 22:34:36
SWDEV-174198 - OpenCL Runtime Support for MI100 BU in ROCM

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdefs.hpp#21 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#103 edit
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/runtime/OCLDeviceQueries.cpp#50 edit
2018-12-12 23:38:10 -05:00
foreman f9b6ad6449 P4 to Git Change 1719466 by wchau@wchau_OCL_boltzmann on 2018/12/12 15:42:59
SWDEV-169078 - Also copy  private_segment_size/group_segment_size to runtime handle for COMgr support

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palkernel.cpp#75 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rockernel.cpp#46 edit
2018-12-12 15:53:41 -05:00
foreman 9be10558eb P4 to Git Change 1719380 by gandryey@gera-ocl-lc on 2018/12/12 13:37:56
SWDEV-79445 - OCL generic changes and code clean-up
	- Reenable some options in the compilation code.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/devprogram.cpp#20 edit
2018-12-12 13:48:23 -05:00
Evgeny Mankov 8d28db9c8d [HIPIFY][fix] Fixer for #801
[issue #801] Errors in hipification statistics
2018-12-12 21:33:00 +03:00
foreman 1739c7c88e P4 to Git Change 1719281 by gandryey@gera-w8 on 2018/12/12 11:13:58
SWDEV-171895 - No Video playback while 10 bit pixel format is enable
	- Add GL_RGB10_EXT recognition. The format isn't officially supported in the Khronos OCL specification for GL interop. Thus GL_RGB10_EXT doesn't have any test coverage.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_gl.cpp#61 edit
2018-12-12 11:24:44 -05:00
Evgeny Mankov 80d5861d78 Merge pull request #800 from emankov/master
[HIPIFY][tests][fix] Add correct CUDA version detection while testing
2018-12-12 18:30:03 +03:00
Evgeny Mankov a5c66018b6 [HIPIFY][tests][fix] Add correct CUDA version detection while testing
+ Just do load_config for lit.site.cfg earlier in lit.cfg to get initialized cuda_version
+ Remove lit.cfg.in for CMake variables substitution
+ Return back lit.cfg
+ Exclude CUDA 9.0 tests if CUDA < 9.0
+ Report CUDA version before running tests
2018-12-12 17:05:01 +03:00
Jenkins 2a9768844d Merge 'master' into 'amd-master'
Change-Id: I2398d49e51fa3830e490ac83fe1723d7aa4e71d1
2018-12-12 04:09:48 -06:00