Ben Sander
cfdacab32f
Split ihipCtx_t into ihipCtx_t and ihipDevice_t .
...
Major change to existing code base.
Ctx holds streams, enables peers, and flags.
Device holds accelerator, hsa-agent, device props.
Add hipCtx_t.
Add peer APIs that accept hipCtx_t (in addition to deviceId)
Compiles and passes directed tests.
Change-Id: Iddab1eb9edbf90caad2ef5959c6b811d658197f1
2016-08-08 11:55:57 -05:00
Ben Sander
4c7160a134
Add initial/partial coding guidelines
...
Change-Id: Ifd8cb3ad74b15d3ab2f38c3daa038a2808af6fa9
[ROCm/clr commit: 694c0bad62 ]
2016-08-08 11:55:41 -05:00
Ben Sander
694c0bad62
Add initial/partial coding guidelines
...
Change-Id: Ifd8cb3ad74b15d3ab2f38c3daa038a2808af6fa9
2016-08-08 11:55:41 -05:00
Ben Sander
6aeb2dc8d6
Add initial/partial coding guidelines
...
Change-Id: Ifd8cb3ad74b15d3ab2f38c3daa038a2808af6fa9
2016-08-08 11:55:41 -05:00
Amber Lin
876384305b
Add gfx803 support
...
Add gfx803 and gfx80311 device IDs to the support
Change-Id: I16220fd811db102c02e5e0c5b82e40ec299877af
2016-08-08 11:30:57 -04:00
Amber Lin
194f2083d2
Add gfx803 support
...
Add gfx803 and gfx80311 device IDs to the support
Change-Id: I16220fd811db102c02e5e0c5b82e40ec299877af
[ROCm/ROCR-Runtime commit: 876384305b ]
2016-08-08 11:30:57 -04:00
foreman
33ef846ee2
P4 to Git Change 1299848 by johtaylo@johtaylo-JTBUILDER03-increment on 2016/08/08 03:00:08
...
SWDEV-2 - Change OpenCL version number from 2189 to 2190.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#1936 edit
[ROCm/clr commit: 3183b02d63 ]
2016-08-08 03:08:44 -04:00
foreman
3183b02d63
P4 to Git Change 1299848 by johtaylo@johtaylo-JTBUILDER03-increment on 2016/08/08 03:00:08
...
SWDEV-2 - Change OpenCL version number from 2189 to 2190.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#1936 edit
2016-08-08 03:08:44 -04:00
Ben Sander
e5300e2b40
Change Device->Ctx
...
Change ihipDevice_t -> ihipCtx_t (new)
Change ihipGetTlsDefaultDevice->ihipGetTlsDefaultCtx
Some other changes from device->ctx where appropriate.
Change-Id: I5c4ae93b2fd42c6303aa23d748eb166b7431925d
[ROCm/clr commit: 0d16565061 ]
2016-08-07 21:47:12 -05:00
Ben Sander
0d16565061
Change Device->Ctx
...
Change ihipDevice_t -> ihipCtx_t (new)
Change ihipGetTlsDefaultDevice->ihipGetTlsDefaultCtx
Some other changes from device->ctx where appropriate.
Change-Id: I5c4ae93b2fd42c6303aa23d748eb166b7431925d
2016-08-07 21:47:12 -05:00
Ben Sander
2dc3d3238b
Change Device->Ctx
...
Change ihipDevice_t -> ihipCtx_t (new)
Change ihipGetTlsDefaultDevice->ihipGetTlsDefaultCtx
Some other changes from device->ctx where appropriate.
Change-Id: I5c4ae93b2fd42c6303aa23d748eb166b7431925d
2016-08-07 21:47:12 -05:00
Ben Sander
aa43c9e006
Remove ihipStream_r::_device_index
...
Replace with direct pointer to device. Cleaner, and prep
for transition to contexts.
Change-Id: I0e550f34412923d46c541c0a14bb7d29c3fd4b11
[ROCm/clr commit: 3c604b6430 ]
2016-08-07 20:47:06 -05:00
Ben Sander
3c604b6430
Remove ihipStream_r::_device_index
...
Replace with direct pointer to device. Cleaner, and prep
for transition to contexts.
Change-Id: I0e550f34412923d46c541c0a14bb7d29c3fd4b11
2016-08-07 20:47:06 -05:00
Ben Sander
e7d7c5cbe8
Remove ihipStream_r::_device_index
...
Replace with direct pointer to device. Cleaner, and prep
for transition to contexts.
Change-Id: I0e550f34412923d46c541c0a14bb7d29c3fd4b11
2016-08-07 20:47:06 -05:00
foreman
8f9a66960e
P4 to Git Change 1299776 by johtaylo@johtaylo-JTBUILDER03-increment on 2016/08/07 03:00:08
...
SWDEV-2 - Change OpenCL version number from 2188 to 2189.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#1935 edit
[ROCm/clr commit: ea4fbacf13 ]
2016-08-07 03:11:40 -04:00
foreman
ea4fbacf13
P4 to Git Change 1299776 by johtaylo@johtaylo-JTBUILDER03-increment on 2016/08/07 03:00:08
...
SWDEV-2 - Change OpenCL version number from 2188 to 2189.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#1935 edit
2016-08-07 03:11:40 -04:00
Konstantin Zhuravlyov
01dc3a8ff3
[NFC] Cosmetic improvements:
...
- Doxygenify comments
- Match order of implementation with order of declaration
Change-Id: I3c7e486c4dd3616f4b10b2f3e69532a4b5fb9e8e
2016-08-06 14:41:08 -04:00
Konstantin Zhuravlyov
700347b6bf
[NFC] Cosmetic improvements:
...
- Doxygenify comments
- Match order of implementation with order of declaration
Change-Id: I3c7e486c4dd3616f4b10b2f3e69532a4b5fb9e8e
[ROCm/ROCR-Runtime commit: 01dc3a8ff3 ]
2016-08-06 14:41:08 -04:00
foreman
1c1233f07d
P4 to Git Change 1299759 by johtaylo@johtaylo-JTBUILDER03-increment on 2016/08/06 03:00:08
...
SWDEV-2 - Change OpenCL version number from 2187 to 2188.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#1934 edit
[ROCm/clr commit: 8dec267ae7 ]
2016-08-06 03:09:31 -04:00
foreman
8dec267ae7
P4 to Git Change 1299759 by johtaylo@johtaylo-JTBUILDER03-increment on 2016/08/06 03:00:08
...
SWDEV-2 - Change OpenCL version number from 2187 to 2188.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#1934 edit
2016-08-06 03:09:31 -04:00
Evgeny Mankov
67629d0c65
clang-hipify: Transformation of declarations with external linkage and shared attribute for IncompleteArrayType (aka C array[]) only.
...
Example:
extern __shared__ uint sRadix1[]; => HIP_DYNAMIC_SHARED(unsigned int, sRadix1);
[ROCm/clr commit: b7ac63e202 ]
2016-08-05 21:35:58 +03:00
Evgeny Mankov
b7ac63e202
clang-hipify: Transformation of declarations with external linkage and shared attribute for IncompleteArrayType (aka C array[]) only.
...
Example:
extern __shared__ uint sRadix1[]; => HIP_DYNAMIC_SHARED(unsigned int, sRadix1);
2016-08-05 21:35:58 +03:00
Evgeny Mankov
114d5bfddf
clang-hipify: Transformation of declarations with external linkage and shared attribute for IncompleteArrayType (aka C array[]) only.
...
Example:
extern __shared__ uint sRadix1[]; => HIP_DYNAMIC_SHARED(unsigned int, sRadix1);
2016-08-05 21:35:58 +03:00
foreman
291aacb764
P4 to Git Change 1299584 by lmoriche@lmoriche_opencl_dev on 2016/08/05 12:04:07
...
SWDEV-94610 - To allow the device initialization to complete, disable the blit kernels creation for now (OpenCL/LC).
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#6 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocvirtual.cpp#6 edit
[ROCm/clr commit: 53e279d2b1 ]
2016-08-05 12:12:23 -04:00
foreman
53e279d2b1
P4 to Git Change 1299584 by lmoriche@lmoriche_opencl_dev on 2016/08/05 12:04:07
...
SWDEV-94610 - To allow the device initialization to complete, disable the blit kernels creation for now (OpenCL/LC).
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#6 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocvirtual.cpp#6 edit
2016-08-05 12:12:23 -04:00
Rahul Garg
7b7f9dab90
Region based apis to pool based api changes
...
Change-Id: If53019eebafe051ab4e811863995f78315297080
[ROCm/clr commit: 52712e2134 ]
2016-08-05 15:05:57 +05:30
Rahul Garg
52712e2134
Region based apis to pool based api changes
...
Change-Id: If53019eebafe051ab4e811863995f78315297080
2016-08-05 15:05:57 +05:30
Rahul Garg
fcb2fcce1e
Region based apis to pool based api changes
...
Change-Id: If53019eebafe051ab4e811863995f78315297080
2016-08-05 15:05:57 +05:30
foreman
3c43a515ef
P4 to Git Change 1299375 by johtaylo@johtaylo-JTBUILDER03-increment on 2016/08/05 03:00:10
...
SWDEV-2 - Change OpenCL version number from 2186 to 2187.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#1933 edit
[ROCm/clr commit: a160657d67 ]
2016-08-05 03:06:41 -04:00
foreman
a160657d67
P4 to Git Change 1299375 by johtaylo@johtaylo-JTBUILDER03-increment on 2016/08/05 03:00:10
...
SWDEV-2 - Change OpenCL version number from 2186 to 2187.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#1933 edit
2016-08-05 03:06:41 -04:00
foreman
858fc8c9ee
P4 to Git Change 1299351 by lmoriche@lmoriche_opencl_dev on 2016/08/05 02:05:23
...
SWDEV-94610 - Fix the release build (warnings treated as errors).
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.cpp#6 edit
[ROCm/clr commit: f06ca03f0b ]
2016-08-05 02:12:33 -04:00
foreman
f06ca03f0b
P4 to Git Change 1299351 by lmoriche@lmoriche_opencl_dev on 2016/08/05 02:05:23
...
SWDEV-94610 - Fix the release build (warnings treated as errors).
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.cpp#6 edit
2016-08-05 02:12:33 -04:00
foreman
b64906b389
P4 to Git Change 1299166 by lmoriche@lmoriche_opencl_dev on 2016/08/04 15:38:20
...
SWDEV-94610 - Relax the assertions in Program::addDeviceProgram
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/platform/program.cpp#80 edit
[ROCm/clr commit: 0e5e53ee19 ]
2016-08-04 15:45:33 -04:00
foreman
0e5e53ee19
P4 to Git Change 1299166 by lmoriche@lmoriche_opencl_dev on 2016/08/04 15:38:20
...
SWDEV-94610 - Relax the assertions in Program::addDeviceProgram
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/platform/program.cpp#80 edit
2016-08-04 15:45:33 -04:00
foreman
b351faca5f
P4 to Git Change 1299127 by lmoriche@lmoriche_opencl_dev on 2016/08/04 14:18:16
...
SWDEV-94610 - Remove the g_complib instance from the ROCm device when building OpenCL/LC
Affected files ...
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/build/Makefile.api#138 edit
... //depot/stg/opencl/drivers/opencl/runtime/build/Makefile.runtime#64 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/device.hpp#276 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/build/Makefile.oclrocm#6 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/roccompiler.cpp#4 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/roccompilerlib.cpp#4 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/roccompilerlib.hpp#4 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#5 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.hpp#4 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rockernel.cpp#4 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.cpp#5 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.hpp#4 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocvirtual.cpp#5 edit
[ROCm/clr commit: dcdd293036 ]
2016-08-04 14:24:34 -04:00
foreman
dcdd293036
P4 to Git Change 1299127 by lmoriche@lmoriche_opencl_dev on 2016/08/04 14:18:16
...
SWDEV-94610 - Remove the g_complib instance from the ROCm device when building OpenCL/LC
Affected files ...
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/build/Makefile.api#138 edit
... //depot/stg/opencl/drivers/opencl/runtime/build/Makefile.runtime#64 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/device.hpp#276 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/build/Makefile.oclrocm#6 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/roccompiler.cpp#4 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/roccompilerlib.cpp#4 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/roccompilerlib.hpp#4 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#5 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.hpp#4 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rockernel.cpp#4 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.cpp#5 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.hpp#4 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocvirtual.cpp#5 edit
2016-08-04 14:24:34 -04:00
foreman
f30ef1d626
P4 to Git Change 1298907 by johtaylo@johtaylo-JTBUILDER03-increment on 2016/08/04 03:00:09
...
SWDEV-2 - Change OpenCL version number from 2185 to 2186.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#1932 edit
[ROCm/clr commit: 1c7eee3d8b ]
2016-08-04 03:06:44 -04:00
foreman
1c7eee3d8b
P4 to Git Change 1298907 by johtaylo@johtaylo-JTBUILDER03-increment on 2016/08/04 03:00:09
...
SWDEV-2 - Change OpenCL version number from 2185 to 2186.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#1932 edit
2016-08-04 03:06:44 -04:00
foreman
ca8ca30ede
P4 to Git Change 1298740 by lmoriche@lmoriche_opencl_dev on 2016/08/03 17:43:07
...
SWDEV-94610 - Add the opencl_driver library to the amdocl link libs. Disable posix_spawn and futimens to meet the glibc <= 2.5 requirement.
Affected files ...
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/build/Makefile.api#135 edit
... //depot/stg/opencl/drivers/opencl/make/llvm.git/linux/include/llvm/Config/config.h#2 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/build/Makefile.oclrocm#5 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.cpp#4 edit
[ROCm/clr commit: a0f181f07b ]
2016-08-03 17:52:13 -04:00
foreman
a0f181f07b
P4 to Git Change 1298740 by lmoriche@lmoriche_opencl_dev on 2016/08/03 17:43:07
...
SWDEV-94610 - Add the opencl_driver library to the amdocl link libs. Disable posix_spawn and futimens to meet the glibc <= 2.5 requirement.
Affected files ...
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/build/Makefile.api#135 edit
... //depot/stg/opencl/drivers/opencl/make/llvm.git/linux/include/llvm/Config/config.h#2 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/build/Makefile.oclrocm#5 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.cpp#4 edit
2016-08-03 17:52:13 -04:00
foreman
89f0648ef4
P4 to Git Change 1298635 by lmoriche@lmoriche_opencl_dev on 2016/08/03 15:14:04
...
SWDEV-94644 - Comment out sections of the rocm virtual device still using the compiler library.
Affected files ...
... //depot/stg/opencl/drivers/opencl/Makefile#55 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/Makefile#6 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/build/Makefile.api#134 edit
... //depot/stg/opencl/drivers/opencl/compiler/Makefile#66 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/build/Makefile.utils#18 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/device.cpp#199 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/program.cpp#79 edit
[ROCm/clr commit: 2ee7f40651 ]
2016-08-03 15:30:13 -04:00
foreman
2ee7f40651
P4 to Git Change 1298635 by lmoriche@lmoriche_opencl_dev on 2016/08/03 15:14:04
...
SWDEV-94644 - Comment out sections of the rocm virtual device still using the compiler library.
Affected files ...
... //depot/stg/opencl/drivers/opencl/Makefile#55 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/Makefile#6 edit
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/build/Makefile.api#134 edit
... //depot/stg/opencl/drivers/opencl/compiler/Makefile#66 edit
... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/build/Makefile.utils#18 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/device.cpp#199 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/program.cpp#79 edit
2016-08-03 15:30:13 -04:00
Maneesh Gupta
ec4710fccf
Merge branch 'amd-develop' into amd-master
...
Change-Id: I817585dfe3077250acbfd56cbb0a7a4a120361e3
[ROCm/clr commit: 16a8be8085 ]
2016-08-03 14:16:22 +05:30
Maneesh Gupta
16a8be8085
Merge branch 'amd-develop' into amd-master
...
Change-Id: I817585dfe3077250acbfd56cbb0a7a4a120361e3
2016-08-03 14:16:22 +05:30
Maneesh Gupta
b151f6f997
Merge branch 'amd-develop' into amd-master
...
Change-Id: I817585dfe3077250acbfd56cbb0a7a4a120361e3
2016-08-03 14:16:22 +05:30
foreman
55e3d36622
P4 to Git Change 1298394 by johtaylo@johtaylo-JTBUILDER03-increment on 2016/08/03 03:00:08
...
SWDEV-2 - Change OpenCL version number from 2184 to 2185.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#1931 edit
[ROCm/clr commit: 554b5472d3 ]
2016-08-03 03:13:49 -04:00
foreman
554b5472d3
P4 to Git Change 1298394 by johtaylo@johtaylo-JTBUILDER03-increment on 2016/08/03 03:00:08
...
SWDEV-2 - Change OpenCL version number from 2184 to 2185.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/utils/versions.hpp#1931 edit
2016-08-03 03:13:49 -04:00
Maneesh Gupta
f468d7b0b8
.hipconfig now lives in lib
...
Also moved reading .hipconfig to begining of hipcc
Change-Id: Ibb9d32bef64a79f189aa037c36814759c8cc8052
[ROCm/clr commit: 6a2e92f7c8 ]
2016-08-03 12:01:48 +05:30
Maneesh Gupta
6a2e92f7c8
.hipconfig now lives in lib
...
Also moved reading .hipconfig to begining of hipcc
Change-Id: Ibb9d32bef64a79f189aa037c36814759c8cc8052
2016-08-03 12:01:48 +05:30
Maneesh Gupta
bc394505cc
.hipconfig now lives in lib
...
Also moved reading .hipconfig to begining of hipcc
Change-Id: Ibb9d32bef64a79f189aa037c36814759c8cc8052
2016-08-03 12:01:48 +05:30