Commit Graph

13677 Commits

Author SHA1 Message Date
Ben Sander c9463f973a Bump min required HCC version (need feature for hipStreamQuery)
Change-Id: I3d51de0527b73a88948b0263a4ba6cb90d71a280


[ROCm/clr commit: 43c68b20a7]
2016-09-07 15:18:34 -05:00
Ben Sander c75953a822 Add hipStreamQuery
Change-Id: Ib0813b1065feba4fe9ae861d24cfc6f9c5f580be


[ROCm/clr commit: fd67689114]
2016-09-07 15:18:34 -05:00
Ben Sander c5f7fd723a refactor ihipPreLaunchKernel phase#1
- Fix calls to HIP_INIT_API to pass all function arguments.
- Change ihipFunction to follow coding convention:
    - leading underscore for member fields,
    - camelCase for member fields.
- move kernel print function inside ihipPreLaunchKernel.
- add HIP_TRACE_API_COLOR, control color of messages.
- add ihipLogStatus wrapper to hipDeviceSynchronize()

Change-Id: I20bbb644da213f821404648945197254e3648fc9


[ROCm/clr commit: 745310399d]
2016-09-07 15:18:34 -05:00
foreman 08580f51b5 P4 to Git Change 1311856 by asalmanp@asalmanp-ocl-stg-pal on 2016/09/07 15:28:58
SWDEV-79278 - [OpenCL][PAL] fixing a regression in gfx9 after CL#1309875 which caused all the OCLTST tests to fail on gfx9 emulator. Don’t add any extra entry to the GfxIpDeviceInfo table as this table must match with GfxIpLevel enum (located in //depot/stg/pal/inc/core/palDevice.h).

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

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldefs.hpp#11 edit


[ROCm/clr commit: 8764785ce1]
2016-09-07 15:38:56 -04:00
Aditya Atluri a4934a7c66 Fixed group and private memory size to AQL
Change-Id: I6e721f63fe5697b7b90a7d25add9aa024d9dc429


[ROCm/clr commit: 26215c515d]
2016-09-07 12:57:18 -05:00
Maneesh Gupta e6c8bd6ebd CMakeLists.txt: Change default to HIP static library
Change-Id: I9b233c6873d0a69d9aedeb1f9f3773e4258c6f44


[ROCm/clr commit: 59698e3551]
2016-09-07 19:22:38 +05:30
foreman 3f66d55686 P4 to Git Change 1311624 by nhaustov@nhaustov_hsa on 2016/09/07 05:22:23
SWDEV-101272 - Remove call to OptimizeLLVMBitcode.

	It's no longer needed after LLVM fix https://reviews.llvm.org/D24023 .

	Reviewed by: Laurent Morichetti, German Andryeyev.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.cpp#26 edit


[ROCm/clr commit: 6a5ec3a6b0]
2016-09-07 05:29:23 -04:00
Maneesh Gupta fe35c55b56 FindHIP: don't clobber CXX linker and fix some typos
Change-Id: Ie92e9d7c212491ce54f0709d291fafaeb1c479de


[ROCm/clr commit: b14e457a65]
2016-09-07 12:38:25 +05:30
Maneesh Gupta 433832adf1 Rename hipgenisa.sh -> hccgenco.sh
Change-Id: Icfdbb35acd7e84881bd1ab7ef3c85a3109902c6a


[ROCm/clr commit: 3cfeb3cc88]
2016-09-07 10:23:02 +05:30
foreman 862f54db3e P4 to Git Change 1311385 by gandryey@gera-w8 on 2016/09/06 16:51:05
SWDEV-101448 - [CQE OCL][Brahma][PERF][QR] ~21% perf drop is observed with lulesh-cl subtest of ComputeApps tests : Faulty CL # 1306133
	- Use the logic for transfer size before CL#1306133

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpublit.cpp#124 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palblit.cpp#10 edit


[ROCm/clr commit: b750057405]
2016-09-06 17:00:06 -04:00
foreman afebe549f0 P4 to Git Change 1311278 by jatang@jatang-opencl-hsa-stg2 on 2016/09/06 14:13:56
SWDEV-101315 - Fix PerfCounter not working under CodeXL.

	1. Need to map ORCA PerfCounter block to PAL PerfCounter block/instance.
	2. CodeXL could try to create PerfCouters that don't exist in HW, so need to handle that and return 0 as result.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palcounters.cpp#5 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palcounters.hpp#6 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.cpp#21 edit


[ROCm/clr commit: 93e45cff4e]
2016-09-06 14:24:40 -04:00
foreman c42b53faac P4 to Git Change 1311277 by lmoriche@lmoriche_opencl_dev on 2016/09/06 14:11:25
SWDEV-101853 - Fix the build, add a "return NULL" after the assert.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rockernel.hpp#7 edit


[ROCm/clr commit: 59ca1d70e6]
2016-09-06 14:19:41 -04:00
foreman 0a916189b5 P4 to Git Change 1311274 by lmoriche@lmoriche_opencl_dev on 2016/09/06 14:02:55
SWDEV-94610 - Fill the compileSize_ and compileSizeHint_ info from the LC metadata.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rockernel.cpp#13 edit


[ROCm/clr commit: 7d5471671b]
2016-09-06 14:09:20 -04:00
foreman d5898bbcfc P4 to Git Change 1311256 by lmoriche@lmoriche_opencl_dev on 2016/09/06 13:16:58
SWDEV-101853 - roc::Kernel cleanups:
	- Remove unused classes & member functions/variables.
	- Flatten vector arguments for the HSAIL path to  remove the need for numElem_.
	- Consolidate initArguments in a single loop for the HSAIL path.
	- Use the Kernel::Argument to fill the OCL descriptor as much as possible.
	- Set the access qualifier for both buffers and images.
	- Fix the indentation and coding conventions.
	- Add new ROC_ARG_TYPE type for hidden arguments
	- Add an index_ field the roc::Kernel::Argument to record the OCL signature index for this argument, or -1 for hidden arguments
	- Handle the hidden arguments as any other argument at dispatch (now included in the hsailArgList_)
	- roc::Kernel::hsailArgAt(int) now returns the kernel argument for the given position in the OCL signature, not the position the the hsailArgList_.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rockernel.cpp#12 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rockernel.hpp#6 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocvirtual.cpp#12 edit


[ROCm/clr commit: 1c37625aa2]
2016-09-06 13:21:14 -04:00
foreman e4f95d2cc7 P4 to Git Change 1311210 by chui@chui-cnchuiw8-ocl-hsa-stg on 2016/09/06 11:53:29
SWDEV-101383 - Back out CL1310033 as it is causing Carrizo Win 10 Sanity test to crash at ocltst module ocldx.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#553 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/GSLDevice.cpp#172 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/GSLDevice.h#61 edit


[ROCm/clr commit: 73bb49eb7b]
2016-09-06 12:01:14 -04:00
Maneesh Gupta f963d347ff module_api/Makefile: Update as per newer hipgenisa.sh
Change-Id: I479c74eae00d7521434f2740ce5930e326ea05cf


[ROCm/clr commit: 66232eb610]
2016-09-06 17:47:10 +05:30
Maneesh Gupta 1e18d3d53b hipgenisa.sh: Refactor to handle multiple source files
Change-Id: Icc212c43b3bf8c33fb856cd6fc5be7bbebb38d42


[ROCm/clr commit: 0636a6e209]
2016-09-06 17:45:59 +05:30
Maneesh Gupta 597f851ad0 hipcc: Pass ROCM_TARGET as env to hipgenisa.sh
Change-Id: Ib55b6366ae392ca10266ffae38722776ba91f274


[ROCm/clr commit: 3b9ec7f606]
2016-09-06 15:46:18 +05:30
Maneesh Gupta f8ae0cbc92 hipgenisa.sh: Honors ROCM_TARGET env or uses default
Change-Id: Idabf77ff1610ba4adbc78cfa69eb6e87d7e94ee9


[ROCm/clr commit: 5c320865d2]
2016-09-06 15:45:11 +05:30
Maneesh Gupta f29b8e4b2c hipgenisa.sh: exit if no command-line args specified
Change-Id: Ic1b532927fdbb5b9dfe6b2dd144ffad1ee2e6b16


[ROCm/clr commit: 074ecd6368]
2016-09-06 15:23:56 +05:30
Maneesh Gupta f7b72b1c63 hipcc: Pass ROCM_PATH via env to hipgenisa.sh
Change-Id: Ibc2dd8ce65645fd946f1a749effcd9ca0828c453


[ROCm/clr commit: ff2de7892c]
2016-09-06 15:11:17 +05:30
Maneesh Gupta 4101377371 hipgenisa.sh: Look for ROCM_PATH in env or use default
Change-Id: I31733cb059c82d3315376f8f65a280c5737cd2a8


[ROCm/clr commit: 5c15558be2]
2016-09-06 15:10:07 +05:30
Evgeny Mankov 60ff2aa37f [HIPIFY] CUDA Driver API porting to HIP : Conversion types Context and Cache are added.
[ROCm/clr commit: 01981af81d]
2016-09-05 20:26:21 +03:00
Evgeny Mankov f430e8ee1d [HIPIFY] CUDA Driver API porting to HIP : Device functions support.
[ROCm/clr commit: b1094848a5]
2016-09-05 18:05:16 +03:00
Ben Sander bff88c9b4f Doc update.
- Add link to new driver porting guide.
- small typo

Change-Id: Ia8e25e371e17f8b4207b99e3fdfb575e59c2ebf2


[ROCm/clr commit: 0b54fd4527]
2016-09-05 09:30:16 -05:00
Evgeny Mankov 39d613f29e [HIPIFY] CUDA Driver API porting to HIP : Context functions support.
[ROCm/clr commit: 9ec0987aac]
2016-09-05 13:15:49 +03:00
Evgeny Mankov aae58634f5 [HIPIFY][LEGACY] Do not warn on warp shuffle functions.
[ROCm/clr commit: 0970b596e9]
2016-09-05 11:18:48 +03:00
Maneesh Gupta 6780b2ca75 Merge branch 'amd-develop' into amd-master
Change-Id: Ia1320caf8bf1f32f7377639b1b9db8fd26f23113


[ROCm/clr commit: 3ce11f4896]
2016-09-04 21:40:50 +05:30
Maneesh Gupta a2ea4a8944 hip_kernel_language.md: Document difference in arguments for binary code object
Change-Id: I96e347e8582cbd1dbc3776fbafcb9e61563538db


[ROCm/clr commit: 462a1d97b2]
2016-09-04 21:39:28 +05:30
Maneesh Gupta de5701b678 module_api sample: Remove unnecessary platform checks
Change-Id: I1d531264d51ff952a3a68d554672b6d293e23379


[ROCm/clr commit: 40a392800a]
2016-09-04 21:25:14 +05:30
Maneesh Gupta d690c69309 Update README with branching and tagging information
Change-Id: I2d801ef4f0abe6eb0280f86443bc55725701252a


[ROCm/clr commit: fa83be6004]
2016-09-04 21:15:49 +05:30
Rahul Garg d95642b85c Removed NVCC check for hipCtxXXX functions in module_api/runKernel.cpp
Change-Id: I2bdd4fadf41063ec60626f1850e16f8307ebe6b5


[ROCm/clr commit: bb5f15e199]
2016-09-04 20:37:29 +05:30
Maneesh Gupta 9c9747f927 Merge branch 'amd-develop' into amd-master
Change-Id: Id5a5d8417ff3de9d55bc42a4ee6c6b367e1ebeff


[ROCm/clr commit: 0f626d291c]
2016-09-04 16:28:05 +05:30
Maneesh Gupta cdfbacb907 module_api: HCC path no longer needs mangled kernel name
Change-Id: I4c1cb218bfdd05c9fba57276167e3e4205b93614


[ROCm/clr commit: 34a3766ae3]
2016-09-04 16:26:16 +05:30
Maneesh Gupta 6ee4b53784 hip_kernel_language.md: Update documentation for kernel compilation
Change-Id: I51073363c3e8a8837c5fe2ae5a04dae0d441229e


[ROCm/clr commit: d58d796ec5]
2016-09-04 16:25:02 +05:30
Maneesh Gupta 9461fc1cec hipgenisa.sh improvements
- hipgenisa now unmangles kernel names
 - hipgenisa now uses a random temporary directory

Change-Id: I1d0204336bd8042dcf3f39c8f905fcceebd6b785


[ROCm/clr commit: 2c11ce3515]
2016-09-04 16:20:49 +05:30
Maneesh Gupta b3779207c3 module_api sample: no longer need EXTERN_C workaround
Change-Id: Ida087d832df8e1f3620b38f920ec2853aad641c8


[ROCm/clr commit: 257774f8f0]
2016-09-04 13:49:43 +05:30
Maneesh Gupta c32eca602d hipgenisa.sh: handle extern C on HCC path
Change-Id: I2daf09d2cb323ab34653988b668e8bd89f6db94a


[ROCm/clr commit: 16c61fd6e2]
2016-09-04 13:48:44 +05:30
foreman 79c5cc6014 P4 to Git Change 1310723 by johtaylo@johtaylo-JTBUILDER03-increment on 2016/09/04 03:00:08
SWDEV-2 - Change OpenCL version number from 2216 to 2217.

Affected files ...

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


[ROCm/clr commit: 9951309118]
2016-09-04 03:09:27 -04:00
Maneesh Gupta 7974137a91 module_api: workaround to use vcpy_kernel.cpp for NV path
Change-Id: Ib4868bf02c64070e846c19427c39289609909466


[ROCm/clr commit: fa85974c47]
2016-09-04 12:35:08 +05:30
pensun dd92a59939 For module_api sample, use vcpy_kernel.cu to generate ptx file for NV path.
Change-Id: Id0033678834288c4eaa56b12e7d447119be99deb


[ROCm/clr commit: 793dc2bce0]
2016-09-03 21:06:58 -05:00
foreman d318c61b0c P4 to Git Change 1310684 by johtaylo@johtaylo-JTBUILDER03-increment on 2016/09/03 03:00:09
SWDEV-2 - Change OpenCL version number from 2215 to 2216.

Affected files ...

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


[ROCm/clr commit: d914798797]
2016-09-03 03:09:06 -04:00
Ben Sander b47c7dc8aa remove printf
Change-Id: I36510a7ff0425f05a6d0b9c65cda4397c9cc2d95


[ROCm/clr commit: 3c90766c70]
2016-09-02 17:50:31 -05:00
Ben Sander 2d662d866f add hipStreamQuery on nvcc, fix hipStreamWaitEvent for nvcc
[ROCm/clr commit: 9466ab4fca]
2016-09-02 17:26:16 -05:00
Evgeny Mankov a65cc67602 [HIPIFY] CUDA Driver API porting to HIP : populate Replacer's rules with enum members.
enum members for:
CUdevice_attribute/hipDeviceAttribute_t
CUfunc_cache/hipFuncCache
CUsharedconfig/hipSharedMemConfig


[ROCm/clr commit: 7062586103]
2016-09-02 22:23:13 +03:00
Aditya Atluri d864a28183 corrected offline kernel compilation on hipcc path
1. hipgenisa.sh now adds int main(){} during kernel compilation. User does not have to put it there
2. Renamed vcpy_isa.cpp to vcpy_kernel.cpp
3. Removed vcpy_isa.cu as the kernel code should be common for both paths
4. Changed Makefile and runkernel.cpp to work with above changes

Change-Id: I9f8c84706b44bb500bc493a68e959762b55a0142


[ROCm/clr commit: 8f536d8580]
2016-09-02 13:17:17 -05:00
foreman 764d09238f P4 to Git Change 1310397 by lmoriche@lmoriche_opencl_dev on 2016/09/02 13:55:00
SWDEV-101169 - Compile the PCH file from <stdin> instead of a file reference. This removes the requirement to have the original file present when using the PCH file.

Affected files ...

... //depot/stg/opencl/drivers/opencl/make/amdgcn.git/headers/build/Makefile.headers#9 edit
... //depot/stg/opencl/drivers/opencl/make/amdgcn.git/irif/build/Makefile.irif#6 edit
... //depot/stg/opencl/drivers/opencl/make/amdgcn.git/ockl/build/Makefile.ockl#7 edit
... //depot/stg/opencl/drivers/opencl/make/amdgcn.git/oclc/build/Makefile.oclc#9 edit
... //depot/stg/opencl/drivers/opencl/make/amdgcn.git/ocml/build/Makefile.ocml#7 edit
... //depot/stg/opencl/drivers/opencl/make/amdgcn.git/opencl/build/Makefile.opencl#9 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/roccompiler.cpp#14 edit


[ROCm/clr commit: 7937fd1812]
2016-09-02 14:05:40 -04:00
Ben Sander f3da27cd5a Fix double-lock of stream on hipModuleLaunchKernel
Change-Id: I4ca164971c25f4eb8fbcca11d6258367bb3d2ab4


[ROCm/clr commit: 0fdb5bf517]
2016-09-02 12:47:49 -05:00
foreman f90f49613f P4 to Git Change 1310350 by lmoriche@lmoriche_opencl_dev on 2016/09/02 12:29:12
SWDEV-101853 - Use the PointeeAlignment metadata to align the dynamic LDS allocations at dispatch.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/amdgpu_metadata.cpp#3 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/amdgpu_metadata.hpp#3 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rockernel.cpp#11 edit


[ROCm/clr commit: b581f2510b]
2016-09-02 12:33:55 -04:00
pensun 93c97069dd Add deprecated information for threadfence() and threadfence_system() function.
Change-Id: I71793e9f48523776a87c91f3ed1eef7b9a9da88b


[ROCm/clr commit: 8ae5498f99]
2016-09-02 09:52:07 -05:00