Commit Graph

12942 Commits

Author SHA1 Message Date
Aditya Atluri 49946441ab fixed hipHostGetFlags test
[ROCm/clr commit: e9e84d2db6]
2016-03-23 02:45:21 -05:00
Aditya Atluri 53bdbdc81b Remove redundant hpiHostGetDevicePointer
[ROCm/clr commit: b1b6d5e648]
2016-03-23 09:21:02 -05:00
Ben Sander 4f295f4358 Add USE_AV_COPY (replaces calls to am_copy with new acc_view::copy
[ROCm/clr commit: 6fb2367b66]
2016-03-23 10:30:53 -05:00
Ben Sander 72332dccb7 use the CPU_Agent for memory copies to indicate direction.
[ROCm/clr commit: f3ac666a7a]
2016-03-23 10:29:44 -05:00
foreman 721a8ed870 P4 to Git Change 1250251 by johtaylo@johtaylo-JTBUILDER03-increment on 2016/03/23 03:00:11
SWDEV-2 - Change OpenCL version number from 2071 to 2072.

Affected files ...

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


[ROCm/clr commit: 68da626227]
2016-03-23 03:06:52 -04:00
foreman a60dcccfec P4 to Git Change 1249992 by weizhang@weizhang-lnx-opencl on 2016/03/22 15:10:37
SWDEV-84070 - Extend the workaround submitted in CL#1242741 to GFX7 generation.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/GSLDevice.cpp#163 edit


[ROCm/clr commit: 76a96b7f06]
2016-03-22 15:19:12 -04:00
dfukalov cbd6ec0f49 Merge branch 'master' of https://github.com/GPUOpen-ProfessionalCompute-Tools/HIP-hipify
[ROCm/clr commit: 16d2a901b6]
2016-03-22 19:51:21 +03:00
dfukalov 9ed5510496 migrating from std::string to StringRef
[ROCm/clr commit: 0cdb0dc5ac]
2016-03-22 19:48:29 +03:00
Daniil Fukalov 800ed30560 Update README.md
[ROCm/clr commit: 1ec21c1ac5]
2016-03-22 17:59:11 +03:00
Ben Sander f70dc3c245 Only include activity logger if CodeXL installed.
Fix hipHostMalloc in hipBusBandwidth.


[ROCm/clr commit: 004b4ada93]
2016-03-22 09:27:10 -05:00
Ben Sander 18a4fdb1b6 remove unneeded files
[ROCm/clr commit: 2a54c58cac]
2016-03-23 03:41:01 -05:00
Ben Sander 236ac8e023 Merge branch 'privatestaging' of https://github.com/AMDComputeLibraries/HIP-privatestaging into privatestaging
Conflicts:
	src/hip_hcc.cpp


[ROCm/clr commit: 8954e4fb26]
2016-03-23 03:22:09 -05:00
Ben Sander 8c25bc63b9 Add unique stream_id to devices to improve debug
[ROCm/clr commit: dc86743b35]
2016-03-23 03:17:19 -05:00
Ben Sander ab9a256f47 Improve trace API
- Validate compile-time disables.
- Add README.md section explain how to install/use CodeXL tracing
- Add code docs on trace_helper.h
- fix color on hipLaunchKernel to green.


[ROCm/clr commit: fa8deac1ad]
2016-03-23 02:57:52 -05:00
Ben Sander 454faa062e HIP_TRACE_API prints function args, and in color
[ROCm/clr commit: aed1a82ccb]
2016-03-23 02:19:49 -05:00
Ben Sander f418fe4dae use codexl marker interface to mark HIP function/begin end.
- Creates markers in HIP group and they show up in CodeXL trace
- Marker text includes HIP functioin arguments
- (Add trace_helper to convert arguments to strings)
- Still need to add HIP_INIT_API for ~30 HIP functions.


[ROCm/clr commit: 54704b59dd]
2016-03-23 01:17:53 -05:00
Ben Sander acfe7cf1cc Describe how to file an issue
[ROCm/clr commit: 723327cd0f]
2016-03-23 01:15:05 -05:00
Aditya Atluri 52213587a7 Update CUDA_Runtime_API_functions_supported_by_HIP.md
[ROCm/clr commit: 55291cc654]
2016-03-22 10:42:34 -05:00
dfukalov 10688380d7 1. renamed hipMallocHost -> hipHostAlloc, hipFreeHost -> hipHostFree
2. added capability to build with llvm/clang 3.8


[ROCm/clr commit: 84ca2aa72c]
2016-03-22 17:07:37 +03:00
foreman b9bb5cf51e P4 to Git Change 1249828 by kzhuravl@kzhuravl-fiji-oclhsa on 2016/03/22 09:28:38
SWDEV-76911 - Enforce profile checks in executable [integration of CL 1249531] + fix executable creation in orca runtime

	ReviewBoardURL: http://ocltc.amd.com/reviews/r/10061/
	Testing: precheckin (http://ocltc.amd.com:8111/viewModification.html?modId=68662&personal=true&init=1&tab=vcsModificationBuilds)

Affected files ...

... //depot/stg/opencl/drivers/opencl/compiler/sc/HSAIL/ext/amdhsacod/amdhsacod.cpp#12 integrate
... //depot/stg/opencl/drivers/opencl/compiler/sc/HSAIL/ext/loader/executable.cpp#24 integrate
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuprogram.cpp#223 edit


[ROCm/clr commit: c0d9192ab0]
2016-03-22 09:38:40 -04:00
Daniil Fukalov ffad8e2a6e added Notes about installing dependent CUDA headers
[ROCm/clr commit: 279d5fedc4]
2016-03-22 14:57:59 +03:00
Ben Sander 37a02661a6 hipHostRegister and hipHostMalloc refactor.
Note hipHostMalloc (not hipHostAlloc or hipMallocHost).
 -  the hipHost* is used for all HIP APIs dealing with Host memory.
    (including hipHostMalloc, hipHostFree, hipHostRegister,
hipHostUnregister, hipHostGetFlags, hipHostGetDevicePointer).
  - hipMallocHost is consistent with "hipMalloc" for allocating device
    memory.  Enumerations hipHostMalloc* also used as optional
    flags parm to hipHostMalloc.


[ROCm/clr commit: 2d0fade1f7]
2016-03-22 02:30:10 -05:00
foreman e949424117 P4 to Git Change 1249685 by johtaylo@johtaylo-JTBUILDER03-increment on 2016/03/22 03:00:13
SWDEV-2 - Change OpenCL version number from 2070 to 2071.

Affected files ...

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


[ROCm/clr commit: 081797160c]
2016-03-22 03:24:22 -04:00
Ben Sander db8bff1235 Merge branch 'privatestaging' of https://github.com/AMDComputeLibraries/HIP-privatestaging into privatestaging
[ROCm/clr commit: bf83b949f6]
2016-03-22 01:17:17 -05:00
Aditya Atluri 726ffa5124 Update CUDA_Runtime_API_functions_supported_by_HIP.md
[ROCm/clr commit: a8a255b6bc]
2016-03-21 18:33:50 -05:00
foreman 40bbefd3aa P4 to Git Change 1249491 by gandryey@gera-w8 on 2016/03/21 17:37:48
SWDEV-90408 - OpenCL runtime crashes when querying CL_PROGRAM_NUM_KERNELS on a program built with clCompileProgram
	- The app attempts to get query before build/link call. Make sure symbols are available.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_program.cpp#40 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/program.hpp#39 edit


[ROCm/clr commit: c2b98ee500]
2016-03-21 17:51:06 -04:00
foreman 2630e256f8 P4 to Git Change 1249491 by gandryey@gera-w8 on 2016/03/21 17:37:48
SWDEV-90408 - OpenCL runtime crashes when querying CL_PROGRAM_NUM_KERNELS on a program built with clCompileProgram
	- The app attempts to get query before build/link call. Make sure symbols are available.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_program.cpp#40 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/program.hpp#39 edit


[ROCm/clr commit: 769ff6d3f8]
2016-03-21 17:51:06 -04:00
foreman 1f4061ccbc P4 to Git Change 1249484 by kzhuravl@kzhuravl-kaveri-sc on 2016/03/21 17:26:34
SWDEV-76911 - Fix base/full profile loader issues on SoftCP path [integration of CL 1249449]

	1) Introduce internal API that provides kernel host address given kernel device address
	2) Remove base/full profile loader hacks we have today

	+ runtime changes:
	1) Remove asserts when querying host address of a host address in hsart's loader context

	ReviewBoardURL: http://ocltc.amd.com/reviews/r/10054/
	Testing: precheckin (http://ocltc.amd.com:8111/viewModification.html?modId=68651&personal=true&tab=vcsModificationBuilds)

Affected files ...

... //depot/stg/opencl/drivers/opencl/compiler/sc/HSAIL/ext/loader/executable.cpp#22 integrate
... //depot/stg/opencl/drivers/opencl/compiler/sc/HSAIL/ext/loader/executable.hpp#11 integrate
... //depot/stg/opencl/drivers/opencl/compiler/sc/HSAIL/include/amd_hsa_kernel_code.h#12 integrate
... //depot/stg/opencl/drivers/opencl/compiler/sc/HSAIL/include/amd_hsa_loader.hpp#10 integrate
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuprogram.hpp#65 edit


[ROCm/clr commit: 3f6cc5b851]
2016-03-21 17:40:05 -04:00
Aditya Atluri cb2b9495f8 Revert "Revert "fixed memory free apis""
This reverts commit 70d2a03efd.


[ROCm/clr commit: 8af8ee2476]
2016-03-21 10:40:42 -05:00
Aditya Atluri 399994788f Revert "Revert "fix nvcc for hipHostMalloc* flags.""
This reverts commit 0978c92dbc.


[ROCm/clr commit: bde1e6182d]
2016-03-21 10:39:49 -05:00
Aditya Atluri 0978c92dbc Revert "fix nvcc for hipHostMalloc* flags."
This reverts commit 849395ec02.


[ROCm/clr commit: 83fee90e83]
2016-03-21 10:36:14 -05:00
Aditya Atluri 70d2a03efd Revert "fixed memory free apis"
This reverts commit 805dbd6d90.


[ROCm/clr commit: 1fa4d0d4b9]
2016-03-21 10:36:11 -05:00
Aditya Atluri 4ca3e4e20e Merge branch 'privatestaging' of https://github.com/AMDComputeLibraries/HIP-privatestaging into privatestaging
[ROCm/clr commit: e99179edc8]
2016-03-21 10:34:08 -05:00
Aditya Atluri 805dbd6d90 fixed memory free apis
[ROCm/clr commit: 71a6b5cb6c]
2016-03-21 10:32:30 -05:00
Aditya Atluri 0a91b906f1 Disabling default-stream per-thread tests
[ROCm/clr commit: 93e6362104]
2016-03-21 14:42:23 -05:00
Ben Sander 849395ec02 fix nvcc for hipHostMalloc* flags.
[ROCm/clr commit: d495ffb1d3]
2016-03-21 09:33:46 -05:00
Ben Sander 7fb3f877b2 Remove kind (aka direction) for copy commands.
This is always auto-detected from the src/dest location.


[ROCm/clr commit: ac1eca47f7]
2016-03-21 05:35:36 -05:00
foreman 9bb7d240cd P4 to Git Change 1249227 by johtaylo@johtaylo-JTBUILDER03-increment on 2016/03/21 03:00:09
SWDEV-2 - Change OpenCL version number from 2069 to 2070.

Affected files ...

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


[ROCm/clr commit: 19564646c7]
2016-03-21 03:15:29 -04:00
Aditya Atluri f3ae40baf7 suppressed warning in hipFreeHost
[ROCm/clr commit: ea352aba6b]
2016-03-20 15:31:59 -05:00
foreman 129bbd29b2 P4 to Git Change 1249126 by johtaylo@johtaylo-JTBUILDER03-increment on 2016/03/20 03:00:10
SWDEV-2 - Change OpenCL version number from 2068 to 2069.

Affected files ...

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


[ROCm/clr commit: d58bf7ea73]
2016-03-20 15:08:57 -04:00
Aditya Atluri cad8b62504 Added feature for --default-streams not working tests and hipcc
[ROCm/clr commit: f6b38b18b6]
2016-03-20 08:08:33 -05:00
Ben Sander 98106c384c Implement hipHostFree on HCC path
[ROCm/clr commit: 80d708846a]
2016-03-19 23:25:11 -05:00
Ben Sander c2fd536c22 fix nvcc compiler
- MallocHost and FreeHost deprecation.
- Change tests to call new hipHost* equivs.
- Add missing StreamSynchronize.


[ROCm/clr commit: 6984f24d3d]
2016-03-19 04:20:15 -05:00
Ben Sander 250a2816fd Refactor copy - place common code in resolveMemoryKind.
[ROCm/clr commit: 03731020f1]
2016-03-19 22:56:10 -05:00
Ben Sander b1d3df6484 Deprecate hipMallocHost and hipFreeHost.
These will print compiler warnings if used, so we can weed them out
before removing.

Also add a default flags args for hipHostAlloc, in the C++ functioin
headers.  So you can replace hipMallocHost(&ptr, size( with hipHostAlloc(&ptr, size)


[ROCm/clr commit: 57365eb7a3]
2016-03-19 22:53:59 -05:00
Ben Sander c75b63b61c Refactor waitALlDevices and async mem copy.
- move waitAllStreams to device member function.
- create separate stream member function for copyAsync, like copySync.
  hipMemcpyAsync now calls the copyAsync.


[ROCm/clr commit: a88c2b1ec9]
2016-03-19 05:42:19 -05:00
Ben Sander d41836a4a1 Fix bug: test was allocating host mem instead of device mem.
Caused assertion when checking free + allocated should
not exceed total.  Bug introduced in hipHostAlloc conversion.


[ROCm/clr commit: 4c6fd4e7ec]
2016-03-19 04:11:39 -05:00
Ben Sander cf95ea5468 Swap in corrected hipHostAlloc (bad merge)
[ROCm/clr commit: aaa2429feb]
2016-03-19 04:11:08 -05:00
Ben Sander 3305c49949 Merge branch 'privatestaging' of https://github.com/AMDComputeLibraries/HIP-privatestaging into privatestaging
Conflicts:
	src/hip_hcc.cpp


[ROCm/clr commit: 90ad8ddc5d]
2016-03-19 03:22:09 -05:00
Ben Sander 3323d2005c disable mt streams tests (for now)
[ROCm/clr commit: efc9df8805]
2016-03-19 03:10:31 -05:00