Michael Kuron
357dc8be11
Use correct trace macro in hipGetSymbolAddress/hipGetSymbolSize
2018-11-06 20:46:30 +01:00
Aaron Enye Shi
9aa92238ab
Guard the OCML rounded operations instead
...
Instead of commenting all these functions out, guard the functions with a macro OCML_BASIC_ROUNDED_OPERATIONS.
2018-11-06 16:32:14 +00:00
Michael Kuron
538a8939a6
hipify-perl: add hipGetSymbolAddress and hipGetSymbolSize
2018-11-06 12:02:21 +01:00
Michael Kuron
fe2281f101
Test for hipGetSymbolSize and hipGetSymbolAddress
2018-11-06 11:39:34 +01:00
Michael Kuron
4da2d92281
Introduce ihipModuleGetGlobal
2018-11-06 09:54:34 +01:00
foreman
3b117ab200
P4 to Git Change 1702912 by chui@ocl-promo-incrementor on 2018/11/06 03:00:05
...
SWDEV-2 - Change OpenCL version number from 2769 to 2770.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2517 edit
2018-11-06 03:08:51 -05:00
Aaron Enye Shi
789814ab30
Update hip-math-api doc to remove non-default-rounded
2018-11-05 22:54:55 +00:00
Aaron Enye Shi
cef6e8ef1f
Remove non-working non-default-rounded math apis
...
In ROCm-Device-Libs, they have dropped the non-default-rounded versions of add, sub, mul, div, sqrt and fma. Therefore, ocml has removed the rte, rtp, rtn, and rtz counterparts. This will remove the same math APIs in HIP for _ru, _rd, _rn, and _rz.
2018-11-05 22:34:16 +00:00
foreman
9c877959f6
P4 to Git Change 1702548 by wchau@wchau_OCL_boltzmann on 2018/11/05 14:14:59
...
SWDEV-162389 - OpenCL Support for COMgr
- currently COMgr library does not support gfx10+
- to build the OCL driver with the COMgr support, add an COMGR_DIR option for the MAKE command
- the COMGR_DIR specifies the directory that contains the COMgr header file, "include/amd_comgr.h", and library, "lib/libamd_comgr.so"
NOTE: check in the codes to unblock German's work for now, codes will be modified to handle HSAIL and LC paths dynamically.
Affected files ...
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/build/Makefile.api#176 edit
... //depot/stg/opencl/drivers/opencl/opencldefs#235 edit
... //depot/stg/opencl/drivers/opencl/runtime/build/Makefile.runtime#76 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/devprogram.cpp#12 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/devprogram.hpp#8 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/build/Makefile.oclrocm#21 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdefs.hpp#20 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.cpp#94 edit
2018-11-05 14:24:49 -05:00
Michael Kuron
8049cdafab
Document return values of hipMemcpyToSymbol, hipGetSymbolAddress
2018-11-04 11:47:17 +01:00
Michael Kuron
0b6f5791f8
Implement hipGetSymbolAddress and hipGetSymbolSize
2018-11-04 10:39:34 +01:00
foreman
de83580574
P4 to Git Change 1702220 by chui@ocl-promo-incrementor on 2018/11/03 03:00:06
...
SWDEV-2 - Change OpenCL version number from 2768 to 2769.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2516 edit
2018-11-03 03:03:35 -04:00
foreman
1b6dee43bd
P4 to Git Change 1702079 by jujiang@JJ-OCL-w8 on 2018/11/02 16:01:11
...
SWDEV-155310 - Request for OpenCL extension function to set stable pstate
Affected files ...
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_context.cpp#60 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_profile_amd.cpp#5 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_profile_amd.h#3 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/device.hpp#324 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#600 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.hpp#170 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#115 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.hpp#35 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#102 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.hpp#32 edit
2018-11-02 16:09:59 -04:00
foreman
1a7008f29b
P4 to Git Change 1702079 by jujiang@JJ-OCL-w8 on 2018/11/02 16:01:11
...
SWDEV-155310 - Request for OpenCL extension function to set stable pstate
Affected files ...
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_context.cpp#60 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_profile_amd.cpp#5 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_profile_amd.h#3 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/device.hpp#324 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#600 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.hpp#170 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#115 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.hpp#35 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#102 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.hpp#32 edit
2018-11-02 16:09:59 -04:00
foreman
4801cb045b
P4 to Git Change 1701615 by chui@ocl-promo-incrementor on 2018/11/02 03:00:03
...
SWDEV-2 - Change OpenCL version number from 2767 to 2768.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2515 edit
2018-11-02 03:10:48 -04:00
Maneesh Gupta
52b9a62e21
Merge pull request #747 from scchan/fix_hip_malloc_global_arrays
...
Move the global arrays for hip malloc/free
2018-11-02 11:32:11 +05:30
Alex Voicu
1c525d7222
Merge branch 'master' of https://github.com/ROCm-Developer-Tools/HIP into feature_get_alignment_and_size_from_metadata
2018-11-01 23:17:27 +00:00
foreman
9a9b44fa32
P4 to Git Change 1701409 by gandryey@gera-w8 on 2018/11/01 17:43:16
...
SWDEV-79445 - OCL generic changes and code clean-up
- Remove obsolete settings
- Simplify some logic when runtime checks dimension override in the dispatch critical path
Affected files ...
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_execute.cpp#29 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/device.cpp#233 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/device.hpp#323 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/devkernel.cpp#9 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#599 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpukernel.cpp#333 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuprogram.cpp#246 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuresource.cpp#246 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpusettings.cpp#361 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpusettings.hpp#103 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuvirtual.cpp#425 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/GSLDevice.cpp#184 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palsettings.cpp#60 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palsettings.hpp#20 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocsettings.cpp#39 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocsettings.hpp#18 edit
... //depot/stg/opencl/drivers/opencl/runtime/utils/flags.hpp#300 edit
2018-11-01 17:49:35 -04:00
foreman
21f6e4337a
P4 to Git Change 1701409 by gandryey@gera-w8 on 2018/11/01 17:43:16
...
SWDEV-79445 - OCL generic changes and code clean-up
- Remove obsolete settings
- Simplify some logic when runtime checks dimension override in the dispatch critical path
Affected files ...
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_execute.cpp#29 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/device.cpp#233 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/device.hpp#323 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/devkernel.cpp#9 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#599 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpukernel.cpp#333 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuprogram.cpp#246 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuresource.cpp#246 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpusettings.cpp#361 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpusettings.hpp#103 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuvirtual.cpp#425 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/GSLDevice.cpp#184 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palsettings.cpp#60 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palsettings.hpp#20 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocsettings.cpp#39 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocsettings.hpp#18 edit
... //depot/stg/opencl/drivers/opencl/runtime/utils/flags.hpp#300 edit
2018-11-01 17:49:35 -04:00
Siu Chi Chan
cdd0109e70
Move the global arrays for hip malloc/free
...
from a header into a source file such that
there's only an unique copy in an executable
and prevent wasting static memory on the host
Change-Id: Id5b62766f77809c8d7b47892cb7149c490dcbdb9
2018-11-01 16:20:35 -04:00
Evgeny Mankov
9fe55a3d0d
Merge pull request #746 from emankov/master
...
[HIPIFY][doc] Update README.md
2018-11-01 19:13:22 +03:00
Evgeny Mankov
83d1b50615
[HIPIFY][doc] Update README.md
...
+ Split Linux and Windows sections
+ Rewrite Testing section
2018-11-01 19:11:40 +03:00
Evgeny Mankov
27bb4808d9
Merge pull request #745 from emankov/master
...
[HIPIFY][fix] Fix typo and functions' string arguments
2018-11-01 17:03:01 +03:00
Evgeny Mankov
48abb4a36b
[HIPIFY][fix] Fix typo and functions' string arguments
...
+ Fix typo with missing comma in counterNames array
+ Change std::string argument to const std::string& argument in all functions
2018-11-01 16:57:57 +03:00
foreman
320c9a6375
P4 to Git Change 1700865 by chui@ocl-promo-incrementor on 2018/11/01 03:00:03
...
SWDEV-2 - Change OpenCL version number from 2766 to 2767.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2514 edit
2018-11-01 03:04:36 -04:00
Maneesh Gupta
9fdc1cb875
Merge pull request #744 from mangupta/hipfuncattrib
...
typedef struct hipFuncAttributes now C compatible.
2018-10-31 16:25:25 +05:30
Jenkins
715134e2ff
Merge 'master' into 'amd-master'
...
Change-Id: I8610d76ff9fd7ab50adb518ec8743603a85679d2
2018-10-31 04:09:37 -05:00
Jeff Daily
6eac038694
typedef struct hipFuncAttributes now C compatible.
...
Fixes #591 .
Fixes #694 .
2018-10-31 14:12:45 +05:30
Maneesh Gupta
a75d4c0ecc
Merge pull request #733 from ex-rzr/fix_array_alloc_size
...
Fix allocation size of arrays with multiple and/or non-32-bit channels
2018-10-31 14:08:58 +05:30
Maneesh Gupta
c7f2198c6e
Merge pull request #714 from aaronenyeshi/remove-static-hip-device
...
Remove libhip_device.a static library
2018-10-31 14:08:29 +05:30
Maneesh Gupta
8f667984af
Merge pull request #713 from scchan/master-hcc_early_finalize_support
...
Support more than one device code blobs in a single .kernel section
2018-10-31 14:04:06 +05:30
Alex Voicu
000766850d
Merge branch 'master' of https://github.com/ROCm-Developer-Tools/HIP into feature_get_alignment_and_size_from_metadata
2018-10-30 23:34:46 +00:00
Alex Voicu
1621deee71
If we've already seen a __global__ function we do not need to re-parse
2018-10-30 23:34:27 +00:00
Rahul Garg
592efa017f
Fixes global symbols tracking in hip_module
2018-10-31 03:22:38 +05:30
Evgeny Mankov
ec68fda25a
Merge pull request #741 from emankov/master
...
[HIPIFY][fix][#739 ] Fix garbage after replacements
2018-10-30 19:37:19 +03:00
Evgeny Mankov
2ab8e92195
[HIPIFY][fix][ #739 ] Fix garbage after replacements
...
[Issue] https://github.com/ROCm-Developer-Tools/HIP/issues/739
[Resolution] Always use an std::string not a clang::StringRef for replacement
P.S. Occurred only on Linux, on Windows works fine.
2018-10-30 19:35:59 +03:00
Evgeny Mankov
b2e6ce7be0
Merge pull request #740 from emankov/master
...
[HIPIFY][fix] Return back cudaDeviceProp's struct field warpSize to hipWarpSize mapping
2018-10-30 15:55:17 +03:00
Evgeny Mankov
3489fe9ca1
[HIPIFY][fix] Return back cudaDeviceProp's struct field warpSize to hipWarpSize mapping.
2018-10-30 15:53:00 +03:00
Maneesh Gupta
a36889113c
Merge pull request #726 from ROCm-Developer-Tools/feature_minimal_changes_for_hc_next
...
hipLaunchKernel, hipLaunchParm are deprecated, and shall be removed.
2018-10-30 09:20:39 +05:30
Alex Voicu
1fe33b4738
Handle the very confusing dual encoding of the symbol name.
2018-10-30 01:55:09 +00:00
Evgeny Mankov
93d12de69e
Merge pull request #736 from emankov/master
...
[HIPIFY] Modify HIP types to conform to CUDA's ones
2018-10-29 20:57:22 +03:00
Evgeny Mankov
2af2827a05
[HIPIFY] Modify HIP types to conform to CUDA's ones
2018-10-29 20:51:25 +03:00
Alex Voicu
0f911d7727
Merge branch 'master' of https://github.com/ROCm-Developer-Tools/HIP into feature_get_alignment_and_size_from_metadata
2018-10-29 15:41:44 +00:00
Evgeny Mankov
ce5269025c
Merge pull request #734 from emankov/master
...
[HIPIFY] CUDA Runtime API data types total revise
2018-10-29 17:16:07 +03:00
Evgeny Mankov
41bc184e90
[HIPIFY] CUDA Runtime API data types total revise
...
+ for all CUDA versions up to 10.0
+ add missing types
+ fix typos
+ sync with HIP
+ sync with CUDA Driver API
+ update CUDA_Runtime_API_functions_supported_by_HIP.md
+ update CUDA Driver API map accordingly
+ update CUDA_Driver_API_functions_supported_by_HIP.md
+ formatting, annotating
2018-10-29 17:13:00 +03:00
Anton Gorenko
6e6297f3cd
Fix allocation size of arrays with multiple and/or non-32-bit channels
...
hipMallocArray and hipMalloc3DArray must use sum of bits
of all components.
2018-10-29 18:12:00 +06:00
Alex Voicu
b68caf7653
Merge branch 'master' of https://github.com/ROCm-Developer-Tools/HIP into feature_get_alignment_and_size_from_metadata
2018-10-28 17:02:10 +00:00
Alex Voicu
299b9d1382
Rely on code object metadat for kernarg arguments alignof and sizeof.
2018-10-28 17:01:00 +00:00
foreman
120cb6f34a
P4 to Git Change 1624840 by chui@ocl-promo-incrementor on 2018/10/27 03:00:36
...
SWDEV-2 - Change OpenCL version number from 2765 to 2766.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2513 edit
2018-10-27 03:16:03 -04:00
foreman
e8ca159b62
P4 to Git Change 1624807 by gandryey@gera-w8 on 2018/10/26 18:35:39
...
SWDEV-167970 - Ethereum mining (EthDcrMiner64.exe) App crashed while running Claymore Mining over VI,AI ,CI ASIC families
- Fix a regression after CL#1608975. Use amdil complib instance to query the binary options. The logic in the abstraction layer attempts to validate the binary options and for some reason Ethereum binary isn't compatible with the HSAIL complib instance. It's a workaround for now, since the app doesn't allow debugger and printf debugging is quite time consuming.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/device.hpp#322 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.hpp#169 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/program.cpp#97 edit
2018-10-26 18:44:00 -04:00