Ben Sander
345f23e6c1
Remove coordinate conversions (threadIdx.x -> hipThreadIdx_x)
...
Since these are now supported directly.
[ROCm/clr commit: a431bf6ba2 ]
2017-12-02 07:44:54 -06:00
Ben Sander
113335f857
Update square sample for recent HIP ease-of-use improvements
...
[ROCm/clr commit: 4192c8b54a ]
2017-12-02 07:44:27 -06:00
foreman
369519a005
P4 to Git Change 1489603 by johtaylo@johtaylo-jtincrementor2-increment on 2017/12/02 03:00:04
...
SWDEV-2 - Change OpenCL version number from 2548 to 2549.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2296 edit
[ROCm/clr commit: 7ad48b4fb4 ]
2017-12-02 03:13:55 -05:00
Alex Voicu
1ba0d0ca14
Remove stray leftover comment.
...
[ROCm/clr commit: 954b7dadf7 ]
2017-12-02 00:03:10 +00:00
Alex Voicu
6bdde982ff
Replace archaic use of homebrew functionality with calls to the HC maths library. This fixes a hang observed when building hipTestDeviceDouble.
...
[ROCm/clr commit: b8c80bd0b2 ]
2017-12-02 00:01:47 +00:00
Ben Sander
aead77ff3d
Update RELEASE.md and bugs to reflect HIP infra improvements.
...
[ROCm/clr commit: 3a1520025d ]
2017-12-01 16:09:24 -06:00
Ben Sander
c9f031bc72
Temporarily disable a couple tests pending some HCC work
...
[ROCm/clr commit: 721d862089 ]
2017-12-01 21:46:28 +00:00
foreman
cc01454202
P4 to Git Change 1489496 by gandryey@gera-lnx-rcf on 2017/12/01 15:50:42
...
SWDEV-133810 - PAL support for Linux Pro w/OpenCL 1.2 support
- Force OCL1.2 under Linux
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palsettings.cpp#39 edit
[ROCm/clr commit: a831f0c131 ]
2017-12-01 16:18:39 -05:00
Ben Sander
cabf4d817c
Fix some cppcheck style issues.
...
[ROCm/clr commit: 5933ca7300 ]
2017-12-01 20:45:34 +00:00
Ben Sander
b1aee08dc1
Fix warning from default cppchek.
...
[ROCm/clr commit: 743c54a012 ]
2017-12-01 20:45:33 +00:00
Ben Sander
2ffc9d221b
Merge pull request #246 from AlexVlx/feature_use_module_based_dispatch_instead_of_pfe
...
Use natural dispatch syntax
[ROCm/clr commit: 1a6727e2fc ]
2017-12-01 14:21:25 -06:00
foreman
19e6a639e9
P4 to Git Change 1489221 by johtaylo@johtaylo-jtincrementor2-increment on 2017/12/01 03:00:05
...
SWDEV-2 - Change OpenCL version number from 2547 to 2548.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2295 edit
[ROCm/clr commit: 7a79256506 ]
2017-12-01 03:06:44 -05:00
foreman
9ce3ad0bab
P4 to Git Change 1488953 by wchau@wchau_OCL_boltzmann on 2017/11/30 15:44:58
...
SWDEV-119491 - Add support for cl_amd_assembly_program extension - Enabling Extension
This is the last part of the following four requirements:
(1) OpenCL API / Runtime (CL1487653), (2) ROCm Runtime - compiler invocation (CL1487815), (3) ROCm Driver (CL1488115), (4) Enabling Extension
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocsettings.cpp#29 edit
[ROCm/clr commit: f6b43efd00 ]
2017-11-30 16:04:19 -05:00
foreman
d950b3aa35
P4 to Git Change 1488675 by johtaylo@johtaylo-jtincrementor2-increment on 2017/11/30 03:00:05
...
SWDEV-2 - Change OpenCL version number from 2546 to 2547.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2294 edit
[ROCm/clr commit: 7969ad569d ]
2017-11-30 03:06:16 -05:00
Alex Voicu
76336d46b4
Fix legacy mode detection of the address of an agent allocated variable. In this mode, there exist two executables per each code object, one created by HCC and one created by HIP. Since we dispatch through HCC in legacy mode, we should obtain the address for an agent allocated variable from the latter's executable. Also add two omitted validity checks, whose absence could lead to segfaults when the current process had no .kernel section and / or when an invalid or empty blob was extracted from the latter.
...
[ROCm/clr commit: 33bb425013 ]
2017-11-30 03:29:04 +00:00
Alex Voicu
c1c4f454d8
Add missing space (the final frontier).
...
[ROCm/clr commit: 2e39534377 ]
2017-11-29 21:50:43 +00:00
Alex Voicu
a27fa25d76
Revert "Revert adoption of CUDA indexing in general - this can only work with later versions of the compiler, just like module based dispatch, and thus must be guarded against usage in earlier (e.g. 1.6) versions."
...
This reverts commit 1cd6416
[ROCm/clr commit: 4966518846 ]
2017-11-29 21:49:10 +00:00
Alex Voicu
e0a41791c8
Use a much simpler guard for version 1.6, which allows for direct CUDA indexing to be used.
...
[ROCm/clr commit: 92e80f0943 ]
2017-11-29 21:47:04 +00:00
Alex Voicu
1cd6416492
Revert adoption of CUDA indexing in general - this can only work with later versions of the compiler, just like module based dispatch, and thus must be guarded against usage in earlier (e.g. 1.6) versions.
...
[ROCm/clr commit: 4792475d01 ]
2017-11-29 21:01:28 +00:00
Maneesh Gupta
98ec873ede
Bumped HIP version to 1.5 and updated summary in HIP release notes
...
Change-Id: I4b612da88236674fac2c585ab6891bdd495511b0
[ROCm/clr commit: 2d5e0274ef ]
2017-11-29 13:56:17 +05:30
foreman
769839fb56
P4 to Git Change 1488107 by johtaylo@johtaylo-jtincrementor2-increment on 2017/11/29 03:00:04
...
SWDEV-2 - Change OpenCL version number from 2545 to 2546.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2293 edit
[ROCm/clr commit: 6bd1e02aa0 ]
2017-11-29 03:06:04 -05:00
Alex Voicu
4d18ad9ebe
Fix compiler version check.
...
[ROCm/clr commit: 93e595c267 ]
2017-11-29 03:05:53 +00:00
Alex Voicu
0636d6a976
Add missing file.
...
[ROCm/clr commit: e305d3fc94 ]
2017-11-29 02:16:44 +00:00
Alex Voicu
6b21218303
Fix oversight in selection mechanism which led to erroneous code to be compiled for the grid_launch_GGL component.
...
[ROCm/clr commit: 37c1811b2a ]
2017-11-29 01:37:52 +00:00
Alex Voicu
cdac21c81a
Choose whether or not to use functional grid_launch based on the version of HCC used to compile.
...
[ROCm/clr commit: c6ab6f292b ]
2017-11-29 00:17:44 +00:00
foreman
8917c073fa
P4 to Git Change 1487815 by emankov@em-hsa-lightning on 2017/11/28 16:19:33
...
SWDEV-134396 - cl_amd_assembly_program extension support. Part 2 of 4. Rocm Runtime: Compiler invocation.
precheckin:
http://ocltc.amd.com:8111/viewModification.html?modId=94552&personal=true&init=1&tab=vcsModificationBuilds
reviewed by:
German Andryeyev
Affected files ...
... //depot/stg/opencl/drivers/opencl/compiler/lib/include/v0_8/aclEnums.h#27 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/roccompiler.cpp#40 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.cpp#77 edit
[ROCm/clr commit: a5884cdbf4 ]
2017-11-28 16:25:11 -05:00
Alex Voicu
e85f49a57e
Remove leftover agent allocated globals.
...
[ROCm/clr commit: 45a9f4f7b1 ]
2017-11-28 19:56:04 +00:00
Alex Voicu
abf92dd6e7
Change memset kernel to use memcpy instead of placement new. Simplify indexers.
...
[ROCm/clr commit: d5c8de3f41 ]
2017-11-28 19:45:47 +00:00
Alex Voicu
914acbe88f
Re-sync with upstream and re-factor platform global management for texture references.
...
[ROCm/clr commit: 6a0efb7ed2 ]
2017-11-28 19:15:29 +00:00
Alex Voicu
579a3187da
Merge remote-tracking branch 'origin/master' into feature_use_module_based_dispatch_instead_of_pfe
...
# Conflicts:
# src/hip_module.cpp
[ROCm/clr commit: d37a5a6008 ]
2017-11-28 17:29:11 +00:00
Maneesh Gupta
621cc5e5ca
Fix float2int rounding functions
...
Change-Id: I67943859a6344c5eec0eaa23418c9b802ef72468
[ROCm/clr commit: cc418da654 ]
2017-11-28 17:23:43 +00:00
Alex Voicu
a59daf78d6
This actually (tries) to do the right thing all the way, by using memcpy for bitcasting, and not rely on undefined behaviour of a different flavour as a substitute for the original undefined behaviour. Note that the compiler will (should) optimise down to the same emitted code, since this is a pattern it understands.
...
[ROCm/clr commit: bb35299560 ]
2017-11-28 17:23:06 +00:00
Alex Voicu
0de6e0be2b
This fixes some outright quaint choices made when implementing HIP's bitwise conversion functions, by using simple reinterpret_casts, as is idiomatic. These functions are supposed to be re-entrant, correct and efficient. Sadly, they were neither: they hid a massive race condition against a value stored in global memory, which means that they were also unreasonably slow if they ever managed to be correct, and relied on union based type punning which is in a grey area of the standard. It is difficult to ascertain what may have been the reason for coming up with this quirky solution.
...
[ROCm/clr commit: 4b7cb0624e ]
2017-11-28 17:23:06 +00:00
Chris Kitching
8042277672
Add hipify mappings for all CUDA headers that have HIP equivalents
...
I'm particularly running into issues with `device_types.h` in real
CUDA code...
[ROCm/clr commit: 7761f63bbc ]
2017-11-28 17:23:06 +00:00
foreman
1e28932eba
P4 to Git Change 1487653 by wchau@wchau_OCL_boltzmann on 2017/11/28 11:28:09
...
SWDEV-119491 - Add support for cl_amd_assembly_program extension
This is a sub-task of SWDEV-134396. Part 1/4 of the required changes:
(1) OpenCL API / Runtime, (2) ROCm Runtime - compiler invocation, (3) ROCm Driver, (4) Enabling Extension
Affected files ...
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_common.hpp#19 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_context.cpp#57 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_program.cpp#45 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/khronos/headers/opencl1.2/CL/cl_ext.h#19 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/khronos/headers/opencl2.0/CL/cl_ext.h#35 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/khronos/headers/opencl2.1/CL/cl_ext.h#12 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/khronos/headers/opencl2.2/CL/cl_ext.h#6 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/device.cpp#215 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/device.hpp#293 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/program.cpp#90 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/program.hpp#42 edit
[ROCm/clr commit: ea28466b7b ]
2017-11-28 11:41:42 -05:00
foreman
f898f91b38
P4 to Git Change 1487653 by wchau@wchau_OCL_boltzmann on 2017/11/28 11:28:09
...
SWDEV-119491 - Add support for cl_amd_assembly_program extension
This is a sub-task of SWDEV-134396. Part 1/4 of the required changes:
(1) OpenCL API / Runtime, (2) ROCm Runtime - compiler invocation, (3) ROCm Driver, (4) Enabling Extension
Affected files ...
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_common.hpp#19 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_context.cpp#57 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_program.cpp#45 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/khronos/headers/opencl1.2/CL/cl_ext.h#19 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/khronos/headers/opencl2.0/CL/cl_ext.h#35 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/khronos/headers/opencl2.1/CL/cl_ext.h#12 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/khronos/headers/opencl2.2/CL/cl_ext.h#6 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/device.cpp#215 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/device.hpp#293 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/program.cpp#90 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/program.hpp#42 edit
[ROCm/clr commit: 1f86279494 ]
2017-11-28 11:41:42 -05:00
foreman
95d2f777a0
P4 to Git Change 1487650 by wchau@wchau_OCL_boltzmann on 2017/11/28 11:21:33
...
SWDEV-139422 - Lexa Linux Support - OCL
- fixed the OpenCL/LC sanity failures on Windows by adding support of Polaris12 in Settings::create()
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palsettings.cpp#38 edit
[ROCm/clr commit: e304c22316 ]
2017-11-28 11:37:01 -05:00
foreman
689bb93019
P4 to Git Change 1487469 by johtaylo@johtaylo-jtincrementor2-increment on 2017/11/28 03:00:04
...
SWDEV-2 - Change OpenCL version number from 2544 to 2545.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2292 edit
[ROCm/clr commit: 57eac2965e ]
2017-11-28 03:07:17 -05:00
Ben Sander
0de96b6e3e
Merge pull request #256 from gargrahul/texture_driver_api_support
...
Texture driver APIs support
[ROCm/clr commit: e93a24bdbe ]
2017-11-27 13:52:39 -06:00
Rahul Garg
37ceb9a1a8
Added note in Release notes for texture driver APIs
...
[ROCm/clr commit: 6c18df987d ]
2017-11-27 22:06:50 +05:30
Evgeny Mankov
2df33086a8
Merge pull request #262 from ChrisKitching/frontendaction
...
[HIPIFY] Mostly fix preprocessor-or-template induced issues
[ROCm/clr commit: b25d199111 ]
2017-11-27 17:30:11 +03:00
foreman
5ed29f9309
P4 to Git Change 1486756 by johtaylo@johtaylo-jtincrementor2-increment on 2017/11/25 03:00:05
...
SWDEV-2 - Change OpenCL version number from 2543 to 2544.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2291 edit
[ROCm/clr commit: 713bf036bb ]
2017-11-25 03:11:18 -05:00
foreman
d353a3c562
P4 to Git Change 1486724 by wchau@wchau_OCL_boltzmann on 2017/11/24 17:48:34
...
SWDEV-139422 - Lexa Linux Support - OCL
Affected files ...
... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/utils/v0_8/target_mappings.h#21 edit
... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/utils/v0_8/target_mappings_amdil.h#22 edit
... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/utils/v0_8/target_mappings_amdil64.h#21 edit
... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/utils/v0_8/target_mappings_hsail.h#25 edit
... //depot/stg/opencl/drivers/opencl/compiler/legacy-lib/utils/v0_8/target_mappings_hsail64.h#25 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/target_mappings.h#53 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/target_mappings_amdil.h#48 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/target_mappings_amdil64.h#44 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/target_mappings_hsail.h#50 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/target_mappings_hsail64.h#45 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudefs.hpp#150 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#579 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldefs.hpp#25 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#66 edit
[ROCm/clr commit: 88936eb203 ]
2017-11-24 17:58:22 -05:00
foreman
4bbce62c3d
P4 to Git Change 1486480 by johtaylo@johtaylo-jtincrementor2-increment on 2017/11/24 03:00:04
...
SWDEV-2 - Change OpenCL version number from 2542 to 2543.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2290 edit
[ROCm/clr commit: ab0e2fb2fe ]
2017-11-24 03:10:32 -05:00
Rahul Garg
896c146fef
Porting guides update for texture APIs usage
...
[ROCm/clr commit: 3e9a4cfdd1 ]
2017-11-24 12:00:55 +05:30
foreman
75860d803f
P4 to Git Change 1486043 by johtaylo@johtaylo-jtincrementor2-increment on 2017/11/23 03:00:05
...
SWDEV-2 - Change OpenCL version number from 2541 to 2542.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#2289 edit
[ROCm/clr commit: 460f5d125e ]
2017-11-23 13:15:43 -05:00
Ben Sander
84802e5d68
Merge pull request #273 from mangupta/swdev-129574
...
Fix float2int rounding functions
[ROCm/clr commit: 77de4b96cf ]
2017-11-23 12:04:36 -06:00
Maneesh Gupta
05963822e7
Fix float2int rounding functions
...
Change-Id: I67943859a6344c5eec0eaa23418c9b802ef72468
[ROCm/clr commit: 822743845c ]
2017-11-23 09:57:24 +05:30
Alex Voicu
36951c298d
Remove leftover comment.
...
[ROCm/clr commit: dfa532db98 ]
2017-11-22 19:37:03 +00:00
Evgeny Mankov
d7e1419d8b
Merge pull request #263 from ChrisKitching/headers
...
[HIPIFY] Add hipify mappings for all CUDA headers that have HIP equivalents
[ROCm/clr commit: 6bddac1cfa ]
2017-11-22 21:24:21 +03:00