Commit Graph

41017 Commits

Author SHA1 Message Date
Ben Sander 1de63bfeea Merge branch 'privatestaging' of https://github.com/AMDComputeLibraries/HIP-privatestaging into privatestaging
Conflicts:
	src/hip_hcc.cpp
2016-03-19 03:22:09 -05:00
Ben Sander efc9df8805 disable mt streams tests (for now) 2016-03-19 03:10:31 -05:00
Ben Sander dfca4faf27 disable mt streams tests (for now) 2016-03-19 03:10:31 -05:00
Ben Sander c39b0f9660 Describe HIP env vars 2016-03-19 03:09:57 -05:00
Ben Sander 2dc7e9ccfa Describe HIP env vars 2016-03-19 03:09:57 -05:00
Ben Sander 44522eb607 Fix copy and sync bugs. Remove extra sync in default stream.
- NULL stream was waiting for itself to be empty before each command.
- Force "blocking" streams to wait for NULL to empty.  This was missing
  before.
- async copy was disabling itself via trueAsync=false for common cases.

Refactor:
- rename _null_stream to _default_stream.
- move some null sync function to defaultSync, move to dev member func.
2016-03-19 02:44:26 -05:00
Ben Sander 6472c8b915 Fix copy and sync bugs. Remove extra sync in default stream.
- NULL stream was waiting for itself to be empty before each command.
- Force "blocking" streams to wait for NULL to empty.  This was missing
  before.
- async copy was disabling itself via trueAsync=false for common cases.

Refactor:
- rename _null_stream to _default_stream.
- move some null sync function to defaultSync, move to dev member func.
2016-03-19 02:44:26 -05:00
Ben Sander d011d7cf6e Add beastperiteration and onesize for testing.
onesize allows running tests at one specific size.
2016-03-19 02:43:04 -05:00
Ben Sander 5197cf250d Add beastperiteration and onesize for testing.
onesize allows running tests at one specific size.
2016-03-19 02:43:04 -05:00
Ben Sander 7ff5b16d2a Add beastperiteration and onesize for testing.
onesize allows running tests at one specific size.
2016-03-19 02:43:04 -05:00
foreman ef7612cfb3 P4 to Git Change 1249106 by johtaylo@johtaylo-JTBUILDER03-increment on 2016/03/19 03:00:11
SWDEV-2 - Change OpenCL version number from 2067 to 2068.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#1814 edit
2016-03-19 03:12:35 -04:00
foreman 80cdbed438 P4 to Git Change 1249103 by smekhano@stas-rampitec-hsa on 2016/03/19 00:35:23
SWDEV-77584 - HSA HLC: constant fold get_local_size() with reqd_work_group_size attribute

	Testing: smoke, precheckin, conformance non_uniform_work_group
	Reviewed by Valery Pykhtin

Affected files ...

... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/common/optimizer.cpp#28 edit
... //depot/stg/opencl/drivers/opencl/compiler/llvm/include/llvm/AMDUtils.h#5 edit
... //depot/stg/opencl/drivers/opencl/compiler/llvm/include/llvm/Transforms/AMDIntrinsic.h#5 edit
... //depot/stg/opencl/drivers/opencl/compiler/llvm/include/llvm/Transforms/AMDMetadataUtils.h#4 edit
... //depot/stg/opencl/drivers/opencl/compiler/llvm/include/llvm/Transforms/Utils/AMDLibCalls.h#37 edit
... //depot/stg/opencl/drivers/opencl/compiler/llvm/lib/Target/HSAIL/HSAILKernelManager.cpp#53 edit
... //depot/stg/opencl/drivers/opencl/compiler/llvm/lib/Transforms/IntrinsicUtils/AMDIntrinsic.src_cpp#8 edit
... //depot/stg/opencl/drivers/opencl/compiler/llvm/lib/Transforms/SPIR/AMDMetadataUtils.cpp#6 edit
... //depot/stg/opencl/drivers/opencl/compiler/llvm/lib/Transforms/Utils/AMDLibCalls.cpp#61 edit
... //depot/stg/opencl/drivers/opencl/compiler/llvm/lib/Transforms/Utils/AMDUtils.cpp#9 edit
... //depot/stg/opencl/drivers/opencl/tests/hsa/src/ocl/features/metadata/local_size_reqd.cl#1 add
... //depot/stg/opencl/drivers/opencl/tests/hsa/src/ocl/features/metadata/local_size_reqd_intr.cl#1 add
... //depot/stg/opencl/drivers/opencl/tests/hsa/tlst/llc_opt.tlst#87 edit
... //depot/stg/opencl/drivers/opencl/tests/hsa/tlst/ocl_features.tlst#53 edit
2016-03-19 00:43:22 -04:00
Ben Sander f7e2c254df Improve formatting - line up cols 2016-03-18 23:43:04 -05:00
Ben Sander c5d0813f03 Improve formatting - line up cols 2016-03-18 23:43:04 -05:00
Ben Sander 85fce5f21e Improve formatting - line up cols 2016-03-18 23:43:04 -05:00
Ben Sander 62fb06f54e Print Pinned or Unpinned in result summary 2016-03-18 21:28:29 -05:00
Ben Sander 3dc6906855 Print Pinned or Unpinned in result summary 2016-03-18 21:28:29 -05:00
Ben Sander c2102847a4 Print Pinned or Unpinned in result summary 2016-03-18 21:28:29 -05:00
Aditya Atluri a17e390283 Update CUDA_Runtime_API_functions_supported_by_HIP.md 2016-03-18 11:28:06 -05:00
Aditya Atluri 27b6a620d9 Update CUDA_Runtime_API_functions_supported_by_HIP.md 2016-03-18 11:28:06 -05:00
Aditya Atluri 564d13a0b3 Create CUDA_Runtime_API_functions_supported_by_HIP.md 2016-03-18 11:23:44 -05:00
Aditya Atluri 456f8b8455 Create CUDA_Runtime_API_functions_supported_by_HIP.md 2016-03-18 11:23:44 -05:00
Ben Sander 97493d2098 Supported --aliged mode. Add results check for H2D and D2H. 2016-03-18 03:09:52 -05:00
Ben Sander 690486b9eb Supported --aliged mode. Add results check for H2D and D2H. 2016-03-18 03:09:52 -05:00
Ben Sander 618556eaf9 Supported --aliged mode. Add results check for H2D and D2H. 2016-03-18 03:09:52 -05:00
Ben Sander e64174f47a Refactor copy code.
-Move staging buffer locks inside the staging buffer code.
-Remove dedicated per-device completion_signal + per-device lock -
instead allocated signal from the per-stream pool.   This elimintes
the lock and allows more concurrency.
-remove switch HIP_DISABLE_BIDIR_MEMCPY
2016-03-18 03:02:00 -05:00
Ben Sander 0af4d3623f Refactor copy code.
-Move staging buffer locks inside the staging buffer code.
-Remove dedicated per-device completion_signal + per-device lock -
instead allocated signal from the per-stream pool.   This elimintes
the lock and allows more concurrency.
-remove switch HIP_DISABLE_BIDIR_MEMCPY
2016-03-18 03:02:00 -05:00
foreman 35181ad34b P4 to Git Change 1248757 by johtaylo@johtaylo-JTBUILDER03-increment on 2016/03/18 03:00:16
SWDEV-2 - Change OpenCL version number from 2066 to 2067.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#1813 edit
2016-03-18 03:06:16 -04:00
Ben Sander 3b45e064f9 Refactor staging buffer and sync copies.
- refactor staging buffer to operate on hsa* data structures not
  hc::accelerator.
- use hsa_memory_allocate to allocate staging buffers rather than
  am_alloc.
- Refactor device reset with single member function.  Don't reallocate
  staging buffers on reset.
- Properly track dependencies based on command type.  Add new deps for
  H2D and D2D rather than overloading H2D.
2016-03-17 20:09:10 -05:00
Ben Sander 7d500599fa Refactor staging buffer and sync copies.
- refactor staging buffer to operate on hsa* data structures not
  hc::accelerator.
- use hsa_memory_allocate to allocate staging buffers rather than
  am_alloc.
- Refactor device reset with single member function.  Don't reallocate
  staging buffers on reset.
- Properly track dependencies based on command type.  Add new deps for
  H2D and D2D rather than overloading H2D.
2016-03-17 20:09:10 -05:00
Felix Kuehling 06d391c6c9 Add environment variable to disable GPU caching
This option may help debug synchronization or coherency issues
involving the GPU caches. It works only on dGPUs, by changing the
cache policy of the GPUVM default aperture to "cohrent", which is
implemented as non-cached on current dGPU hardware.

Change-Id: I544ac9cc5c0cf1fa5c4e30f67aa42b3b5e44ae67
2016-03-17 18:51:47 -04:00
Felix Kuehling a8a5960095 Add environment variable to disable GPU caching
This option may help debug synchronization or coherency issues
involving the GPU caches. It works only on dGPUs, by changing the
cache policy of the GPUVM default aperture to "cohrent", which is
implemented as non-cached on current dGPU hardware.

Change-Id: I544ac9cc5c0cf1fa5c4e30f67aa42b3b5e44ae67


[ROCm/ROCR-Runtime commit: 06d391c6c9]
2016-03-17 18:51:47 -04:00
foreman 5a093ba1e9 P4 to Git Change 1248319 by johtaylo@johtaylo-JTBUILDER03-increment on 2016/03/17 03:00:18
SWDEV-2 - Change OpenCL version number from 2065 to 2066.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#1812 edit
2016-03-17 03:10:49 -04:00
Ben Sander 1b7cc7d921 Refactor to isolate staging buffer code. 2016-03-17 00:20:56 -05:00
Ben Sander e7586adb33 Refactor to isolate staging buffer code. 2016-03-17 00:20:56 -05:00
Ben Sander a1879ba59b Start separaration of staging_buffer.cpp code.
Still #include staging_buffer.cpp into hip_hcc.cpp.
Directed tests compile hip_hcc to static library and use the library.
2016-03-16 22:26:49 -05:00
Ben Sander 28ee7aff71 Start separaration of staging_buffer.cpp code.
Still #include staging_buffer.cpp into hip_hcc.cpp.
Directed tests compile hip_hcc to static library and use the library.
2016-03-16 22:26:49 -05:00
Ben Sander c9d46bdcde Add aligned alloc 2016-03-16 21:55:57 -05:00
Ben Sander c02bccc153 Add aligned alloc 2016-03-16 21:55:57 -05:00
Ben Sander 8acb53e160 Checkpoint code cleanup.
- Refactor ihipStream in prep for thread-safe implementation.
- Do some work on PinInPlace implementation.
2016-03-16 21:16:29 -05:00
Ben Sander ec50cbb3aa Checkpoint code cleanup.
- Refactor ihipStream in prep for thread-safe implementation.
- Do some work on PinInPlace implementation.
2016-03-16 21:16:29 -05:00
foreman b0cc1d1094 P4 to Git Change 1248071 by skeely@HSA_Perforce on 2016/03/16 13:57:32
SWDEV-90207 - Initial Mesa implementation.  Interop is disabled pending further testing.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/hsa_foundation/hsadefs.hpp#4 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/hsa_foundation/hsadevice.cpp#59 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/hsa_foundation/hsadevice.hpp#27 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/hsa_foundation/hsaglinterop.cpp#1 add
... //depot/stg/opencl/drivers/opencl/runtime/device/hsa_foundation/hsaglinterop.hpp#1 add
... //depot/stg/opencl/drivers/opencl/runtime/device/hsa_foundation/hsamemory.cpp#21 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/hsa_foundation/hsamemory.hpp#9 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/hsa_foundation/hsaregisters.hpp#1 add
... //depot/stg/opencl/drivers/opencl/runtime/device/hsa_foundation/hsasettings.cpp#12 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/hsa_foundation/mesa_glinterop.h#1 add
... //depot/stg/opencl/drivers/opencl/runtime/utils/util.hpp#11 edit
2016-03-16 14:07:05 -04:00
Aditya Atluri 4b96e8c789 changed flag in hipHostRegister 2016-03-16 08:01:53 -05:00
Aditya Atluri 1e588e56e0 changed flag in hipHostRegister 2016-03-16 08:01:53 -05:00
Aditya Atluri 6beed19460 src/ fixed hipHostAllocDefault flags 2016-03-16 07:32:54 -05:00
Aditya Atluri b768568902 src/ fixed hipHostAllocDefault flags 2016-03-16 07:32:54 -05:00
Aditya Atluri 9b78f0a454 Merge branch 'privatestaging' of https://github.com/AMDComputeLibraries/HIP-privatestaging into privatestaging 2016-03-16 07:17:22 -05:00
Aditya Atluri 57a85763bd Merge branch 'privatestaging' of https://github.com/AMDComputeLibraries/HIP-privatestaging into privatestaging 2016-03-16 07:17:22 -05:00
Aditya Atluri 7567a6c0ac Added performance test for memcpy 2016-03-16 07:16:51 -05:00
Aditya Atluri 67d385f407 Added performance test for memcpy 2016-03-16 07:16:51 -05:00