Commit Graph

13691 Commits

Author SHA1 Message Date
foreman a9ac031e6e P4 to Git Change 1515527 by emankov@em-hsa on 2018/02/13 07:35:08
SWDEV-143465 - Fix crashes while mixed work with hsail and amdil (legacy) paths

	Redirect (where it is possible) ACL API calls from HSAIL lib to legacy AMDIL lib if target is AMDIL.
	For those functions (aclCreateFromBinary, aclReadFromMem), where redirect is impossible, explicit loadLibrary for AMDIL lib and call of corresponding function from AMDIL lib is performed.

	[Reviewed] by Stas (http://ocltc.amd.com/reviews/r/14238)

	[Testing] rga offline for all the targets supported by HSAIL and AMDIL (from Family_SI up to Family_VI):
	tahiti, pitcairn, capeverde, spectre, spooky, kalindi, hawaii, oland, bonaire, hainan, carrizo, iceland, tonga, fiji, stoney, baffin, ellesmere.

Affected files ...

... //depot/stg/opencl/drivers/opencl/compiler/lib/api/v0_8/acl.cpp#45 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/api/v0_8/aclValidation.cpp#8 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/api/v0_8/aclValidation.h#3 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/libUtils.cpp#29 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/libUtils.h#30 edit
2018-02-13 07:40:19 -05:00
foreman 8548f9262e P4 to Git Change 1515489 by johtaylo@johtaylo-jtincrementor2-increment on 2018/02/13 03:00:32
SWDEV-2 - Change OpenCL version number from 2589 to 2590.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2337 edit
2018-02-13 03:12:17 -05:00
foreman a95e774f01 P4 to Git Change 1515374 by skeely@skeely_HSA_linux on 2018/02/12 17:53:32
SWDEV-94389 - Get gl display and context from cl context object.

	Also report Mesa interop errors in debug log.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_gl_amd.hpp#20 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#82 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.hpp#25 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocglinterop.cpp#5 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocglinterop.hpp#5 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocmemory.cpp#33 edit
2018-02-12 18:02:35 -05:00
foreman 7175a76b6d P4 to Git Change 1515374 by skeely@skeely_HSA_linux on 2018/02/12 17:53:32
SWDEV-94389 - Get gl display and context from cl context object.

	Also report Mesa interop errors in debug log.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_gl_amd.hpp#20 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#82 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.hpp#25 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocglinterop.cpp#5 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocglinterop.hpp#5 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocmemory.cpp#33 edit
2018-02-12 18:02:35 -05:00
Alex Voicu 4fadfae944 Missing merge. 2018-02-12 20:21:37 +00:00
Alex Voicu a704bd8b44 Re-sync with upstream. 2018-02-12 20:20:24 +00:00
Maneesh Gupta 647d1ba310 Merge pull request #321 from gargrahul/hipMemcpyArray_Functions
Added support for hipMemcpy Array functions-
2018-02-12 10:36:38 +05:30
Maneesh Gupta 6ef0c494d1 [build] Add clangformat target to cmake
- Added a new target "clangformat" which formats the code using the
  clang-format tool found in HCC package.
- Renamed target "static_check" to "cppcheck".
- Use find_program() macro to make the build system more robust.

Change-Id: Ifefbf36f23ff7ef27a870120d5b9170d0cc8aa52
2018-02-12 10:21:27 +05:30
Maneesh Gupta 7cd7a10e33 Merge pull request #350 from gargrahul/fix_module_host_global_symbol
Fixed host allocated globals address lookup for host usage
2018-02-12 10:13:49 +05:30
Maneesh Gupta d38f84b213 Merge pull request #355 from gargrahul/update_hip_programming_guide
Update the programming guide with environment variables names and def…
2018-02-12 10:13:18 +05:30
foreman 94025b9c3b P4 to Git Change 1514800 by johtaylo@johtaylo-jtincrementor2-increment on 2018/02/10 03:00:04
SWDEV-2 - Change OpenCL version number from 2588 to 2589.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2336 edit
2018-02-10 03:18:46 -05:00
Jenkins 994baf094e Merge 'master' into 'amd-master'
Change-Id: I1ff5e75252891feb8a2657a5913ed7cfaf544d98
2018-02-09 04:10:05 -06:00
foreman 6aec0a3b37 P4 to Git Change 1514319 by johtaylo@johtaylo-jtincrementor2-increment on 2018/02/09 03:00:05
SWDEV-2 - Change OpenCL version number from 2587 to 2588.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2335 edit
2018-02-09 03:08:55 -05:00
foreman d2d88e9da0 P4 to Git Change 1513893 by emankov@em-hsa on 2018/02/08 10:45:50
SWDEV-143465 - HSAIL - Add checks for OpenCL extension and device family

	FAMILY_SI devices and OpenCL extensions clc++ and spir are not supported by HSAIL.
	Affected only offline compilation via ACL API.

	[Reviewed] by Stas, http://ocltc.amd.com/reviews/r/14240
	[Testing] aoc2, rga

Affected files ...

... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/common/v0_8/if_acl.cpp#96 edit
2018-02-08 10:57:08 -05:00
foreman 1c58eed229 P4 to Git Change 1513807 by johtaylo@johtaylo-jtincrementor2-increment on 2018/02/08 03:00:44
SWDEV-2 - Change OpenCL version number from 2586 to 2587.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2334 edit
2018-02-08 03:11:33 -05:00
Evgeny Mankov 5c6ce59840 Merge pull request #357 from emankov/master
[HIPIFY][fix] Build against llvm 3.8.0 fixed - missing include
2018-02-08 00:11:15 +03:00
Evgeny Mankov 8ba4acb3cd [HIPIFY][fix] Build against llvm 3.8.0 fixed - missing include
/srv/HIP/hipify-clang/src/main.cpp:134:19: error: no member named 'dbgs' in namespace 'llvm'
      DEBUG(llvm::dbgs() << "Skipped some replacements.\n");
            ~~~~~~^
2018-02-08 00:08:47 +03:00
foreman 42a53ca7c2 P4 to Git Change 1513246 by johtaylo@johtaylo-jtincrementor2-increment on 2018/02/07 03:00:04
SWDEV-2 - Change OpenCL version number from 2585 to 2586.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2333 edit
2018-02-07 03:27:34 -05:00
Jenkins f86c79875f Merge 'master' into 'amd-master'
Change-Id: Iaafb5a8bf49c8e65f718a759da5f16637a8116ce
2018-02-06 04:10:08 -06:00
Rahul Garg c47ae45d0a Update the programming guide with environemnt variables names and default threshold values used. 2018-02-06 14:29:04 +05:30
foreman e07fd7fc7a P4 to Git Change 1511846 by johtaylo@johtaylo-jtincrementor2-increment on 2018/02/04 03:00:05
SWDEV-2 - Change OpenCL version number from 2584 to 2585.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2332 edit
2018-02-05 10:48:23 -05:00
Maneesh Gupta 8359c2eb5a Merge pull request #299 from mangupta/hipStreamAddCallback
Implement hipStreamAddCallback
2018-02-02 08:32:41 +05:30
Evgeny Mankov f961272ef4 Merge pull request #354 from emankov/testing
[HIPIFY][tests] Add coalescing.cu test
2018-02-01 19:42:30 +03:00
Evgeny Mankov e98ee1d627 [HIPIFY][tests] Add coalescing.cu test 2018-02-01 19:41:36 +03:00
Evgeny Mankov 2c4bafebee Merge pull request #353 from emankov/testing
[HIPIFY][tests] Add vec_add.cu test
2018-02-01 18:35:22 +03:00
Evgeny Mankov f7fb6e2199 [HIPIFY][tests] Add vec_add.cu test 2018-02-01 18:34:16 +03:00
Evgeny Mankov 5001755794 Merge pull request #352 from emankov/testing
Testing
2018-02-01 17:38:09 +03:00
Evgeny Mankov 91ef7b50e5 [HIPIFY][tests] add new line at the end of file 2018-02-01 17:36:45 +03:00
Evgeny Mankov 7d71dfd1f7 [HIPIFY][tests] Add intro.cu test 2018-02-01 17:07:48 +03:00
foreman 8b14ef24c5 P4 to Git Change 1510826 by johtaylo@johtaylo-jtincrementor2-increment on 2018/02/01 03:00:05
SWDEV-2 - Change OpenCL version number from 2583 to 2584.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2331 edit
2018-02-01 03:09:02 -05:00
foreman 9bc6d88733 P4 to Git Change 1510302 by johtaylo@johtaylo-jtincrementor2-increment on 2018/01/31 03:00:05
SWDEV-2 - Change OpenCL version number from 2582 to 2583.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2330 edit
2018-01-31 03:09:02 -05:00
Maneesh Gupta 3aab52d7cc hipStreamAddCallback.cpp: Replace unistd sleep with sleep_for
Change-Id: I7a5d40a1acd8be76a0f175bcfa731ad89fb88d81
2018-01-31 10:48:17 +05:30
foreman 2e6d7d965a P4 to Git Change 1510104 by gandryey@gera-w8 on 2018/01/30 16:21:25
SWDEV-144231 - [CQE OCL][DTB][Perf][DTB-BLOCKER] 10% Performance drop observed while running Subtests of IndigoBench due to faulty CL#1507569
	-Wavelimiter has more negative impact than improvements in a few benchmarks.
	- Reduce the number of adaptive samples during the search to 4 per each wave count.
	- Add worstWave_ to skip sampling with low performance settings.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palwavelimiter.cpp#7 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palwavelimiter.hpp#7 edit
2018-01-30 16:49:46 -05:00
Evgeny Mankov b755d4e732 Merge pull request #351 from emankov/cuRAND
[HIPIFY][tests] add poisson-api-example test
2018-01-30 19:51:31 +03:00
Evgeny Mankov eef94a74bc [HIPIFY][tests] add poisson-api-example test
+ add missing types
+ doc update
2018-01-30 19:50:18 +03:00
Evgeny Mankov 04522869a3 Merge pull request #349 from emankov/cuRAND
[HIPIFY] InclusionDirective refactoring
2018-01-30 19:32:05 +03:00
Evgeny Mankov 2ae2693c8a [HIPIFY][tests] fix typo 2018-01-30 18:55:09 +03:00
Rahul Garg b8c23f979b Fixed host allocated globals address lookup for host usage
Fixed texture driver APIs failure
2018-01-30 18:06:31 +05:30
foreman a7ca88a40e P4 to Git Change 1509763 by johtaylo@johtaylo-jtincrementor2-increment on 2018/01/30 03:00:06
SWDEV-2 - Change OpenCL version number from 2581 to 2582.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2329 edit
2018-01-30 03:10:39 -05:00
Maneesh Gupta 6a37c60eaa Fix hipStreamAddCallback testcase for nvcc
Change-Id: Ieec4b8d7933d8d68394d21d27132da206111efc8
2018-01-30 12:32:46 +05:30
foreman a1433357fb P4 to Git Change 1509534 by gandryey@gera-w8 on 2018/01/29 17:42:48
SWDEV-143822 - [CQE OCL][Vega10][OCLtst][DTB-Blocker][QR] 8 out of 50 failures are observed with OCLPerf 32bit test; due to Faulty CL# 1502648
	- Limit the cache size to 1GB with 32 bit

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palsettings.cpp#41 edit
2018-01-29 17:47:45 -05:00
Evgeny Mankov 58f2d3c93f [HIPIFY] InclusionDirective refactoring
Due to support of cuRAND headers.

+ compound test on all headers is added;
+ missing entities are added with updating the doc;
+ a couple cuRAND tests are added (https://github.com/ROCmSoftwarePlatform/rocRAND/tree/master/benchmark):
  - the following CUDA entities are still unsupported by hipRAND:
      curandMakeMTGP32Constants
      curandMakeMTGP32KernelState
      curandGetDirectionVectors32
      curandDirectionVectorSet_t
      CURAND_DIRECTION_VECTORS_32_JOEKUO6
      curandStateSobol64_t
      curandStateScrambledSobol64_t
      curandGenerateLongLong
  - and the following - by HIP:
      cudaRuntimeGetVersion
  - those entities are handled by CHECK-NOT directive for now.
2018-01-29 18:33:47 +03:00
Maneesh Gupta 5eea5ea227 Merge branch 'master' into feature_purge_genco 2018-01-29 16:02:03 +05:30
foreman c5b4ea25c5 P4 to Git Change 1508957 by johtaylo@johtaylo-jtincrementor2-increment on 2018/01/27 03:00:06
SWDEV-2 - Change OpenCL version number from 2580 to 2581.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2328 edit
2018-01-27 03:14:25 -05:00
Jenkins 64ee3ef181 Merge 'master' into 'amd-master'
Change-Id: I17bb06eeadb65ee699aaf92df6d18d0677f30708
2018-01-26 04:09:50 -06:00
foreman 0d9cdd5b8f P4 to Git Change 1508389 by johtaylo@johtaylo-jtincrementor2-increment on 2018/01/26 03:00:05
SWDEV-2 - Change OpenCL version number from 2579 to 2580.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2327 edit
2018-01-26 03:07:26 -05:00
Maneesh Gupta 755c5a2046 Merge pull request #347 from ROCm-Developer-Tools/mangupta-patch-1
Disable md2html conversion in hip doc package
2018-01-26 07:24:14 +05:30
Maneesh Gupta 4995146eaf Disable md2html conversion in hip doc package 2018-01-26 07:02:49 +05:30
Maneesh Gupta 51ade281bd Merge pull request #317 from ROCm-Developer-Tools/fix_hip_debugging_doc
Update hip_debugging.md on typo of chicken bits
2018-01-26 07:00:35 +05:30
Maneesh Gupta 8a98b2d665 Merge pull request #346 from scchan/fix_rhel_build
use assign rather than insert
2018-01-26 06:59:25 +05:30