Commit Graph

47 Commits

Author SHA1 Message Date
Vladislav Sytchenko d53c19cfa5 SWDEV-273235 - Cleanup OpenCL installation logic
Don't use hardcoded install destinations. CMake will decide where things
should be installed based on platform.

Change-Id: Ifcf956181d3efb32d4ce6191a89c1ea225d0e8cc
2021-06-01 14:31:14 -04:00
Vladislav Sytchenko ae36b6c0aa SWDEV-273235 - Fix warning in the cmake build
Change-Id: I9840da22fcce11712c32e68f07ad886d08c8b16f
2021-05-27 18:09:26 -04:00
Vladislav Sytchenko 1c16690617 SWDEV-273235 - Initial support for Windows CMake
This change is tied to the ROCclr cmake rework. ROCclr will now be built
as part of OpenCL itself.

All the dependencies on comgr and rocr have been moved into ROCclr
itself. This allows OpenCL to pull in all the required compiler/runtime
dependencies by simply linking against ROCclr. Note that ROCclr needs to
be configured from OpenCL cmake command line. If not, we will default to
LC + ROCr support.

Change-Id: I5271302d073aef8cfa617828d218c856711bf9ba
2021-05-27 13:08:12 -04:00
Jason Tang b423c699a6 SWDEV-277566 - Use amd::Program::load interface
Change-Id: I0c19d4efcc09709b8aced6fa63e6deae39f58abb
2021-05-10 16:46:03 -04:00
Vladislav Sytchenko 8af3f12790 SWDEV-273235 - Allow explicitly disabling LF support
Currently LiquidFlash cannot be supported from Github Enterprise,
hence we need to be able to build with out it.

Allow this by setting -DWITH_LIQUID_FLASH=0.

Change-Id: I8f147b5d52ca1c8203000beea8f16b2699548dc3
2021-05-05 12:43:59 -04:00
Vladislav Sytchenko 4127be5c63 SWDEV-273235 - Remove implicit dependancy on WGL
Change-Id: I8355587be50492767caa3d2a4e602bdd6eb73960
2021-05-05 12:42:35 -04:00
Vladislav Sytchenko 5958b3bba5 SWDEV-273235 - Minor build fixes for Windows CMake
runtime directory only exists in P4. We should not be referencing it.

Change-Id: I1d88f32fccc716468c070235c4797bd905a76866
2021-05-05 12:40:26 -04:00
German Andryeyev c9feefc584 SWDEV-86035 - Disable liquidflash for PAL build under Linux
Change-Id: I19d335654f98277be0e9af8a25e38d86a6b8de2e
2021-04-21 17:03:10 -04:00
pghafari 74de707cf2 SWDEV-245532 - HIP - Vulkan interop, syntax update
Change-Id: I5fd4431bab4d975efec47298f2746fbcbbec8a44
2021-03-25 13:40:55 -04:00
Payam Ghafari a4ec8608e8 Merge "SWDEV-245532 - HIP - Vulkan interop" into amd-staging 2021-03-23 23:36:59 -04:00
German Andryeyev c4cde09339 SWDEV-276625 - Add implicit glFinish() for cl_khr_gl_event
Modifies the behavior of clEnqueueAcquireGLObjects and
clEnqueueReleaseGLObjects to implicitly guarantee synchronization
with an OpenGL context bound in the same thread as
the OpenCL context.

Change-Id: I23eddee37a77f6c1c9d1a9ad3a3e1eb254a1ed82
2021-03-22 16:49:03 -04:00
pghafari 67e9aac689 SWDEV-245532 - HIP - Vulkan interop
Change-Id: Ied16503cc154fbda8ce28db25df746cccb19e0ba
2021-03-22 15:06:50 -04:00
German Andryeyev 89791c14f9 SWDEV-276569 - Add P010 support for DX9
Change-Id: I652debccc0fabad89eff3052b884a59d44ee8233
2021-03-15 14:45:26 -04:00
German Andryeyev 89e15747ae Merge "SWDEV-276631 - return error codes for clCreateEventFromGLsyncKHR()" into amd-staging 2021-03-15 09:46:36 -04:00
German Andryeyev 9aebe61637 SWDEV-276631 - return error codes for clCreateEventFromGLsyncKHR()
Change-Id: I9b93f5bde157d0f746a9d662ef35fbbb20cce6e6
2021-03-12 14:34:59 -05:00
Jason Tang 4ea3e44ac8 SWDEV-275828 - Fix api negative_get_platform_info test
Change-Id: Iffbcd4fe3b3b59a072e3374c0af3409338eeeca2
2021-03-05 11:34:38 -05:00
German Andryeyev cddfd9e301 SWDEV-274464 - Enable pitch alignment for imagebuffer only
Change-Id: Icfe67e689f99f0859c997281abf80ae5254852fb
2021-03-02 15:28:51 -05:00
German Andryeyev b123dbed2a SWDEV-274464 - Align image width for pitch calculation
Change-Id: I2f817993da06d2e6fe23e8b4b9d0fe10a2e61760
2021-02-27 01:30:52 -05:00
German Andryeyev 4dc90dae10 SWDEV-273071 - add mipmaps detection for FillImage
If mipmap was detected, then create a view with single mip level

Change-Id: I4519b35bd0365c108c42fdb37bfaad729dbc684e
2021-02-16 16:19:28 -05:00
Vladislav Sytchenko 70ac5c3bd8 SWDEV-1 - Fix Windows build
Change-Id: I3867b4a7175316121246a639fb8d704ad491adb6
2021-01-26 11:01:30 -05:00
Tony Tye 91bb64409b SWDEV-268864 - Use new isa class to access isa related information
Change-Id: I866eeef06f86df77c651a25fdf7bceed2c28af52
2021-01-18 22:33:25 +00:00
Reshabh Sharma 255c168ad7 SWDEV-253557 Strip debug symbols for release builds
Change-Id: I4f75a0c08020ecd76e1eec159f266cd1f754af92
2020-10-16 16:10:51 +05:30
Reshabh kumar Sharma 3997b03026 Revert "SWDEV-253557 Strip debug symbols for release builds"
This reverts commit 4c15a8f190.

Reason for revert: Breaks mainline build

Change-Id: Ia1fc5e5723ec688d47544cc26127b680fad59b58
2020-10-16 04:03:07 -04:00
Reshabh Sharma 4c15a8f190 SWDEV-253557 Strip debug symbols for release builds
Change-Id: I50032cb6aae7b1ed1a95c8e84fa8ce5cce476570
2020-10-15 23:41:27 -04:00
Vladislav Sytchenko bd4c6ce6dc Don't use CMAKE_SOURCE_DIR
Change-Id: I373e218850e72ca8fe7f76a7af3e559c485c569b
2020-09-23 13:04:05 -04:00
Vladislav Sytchenko c70ff63d87 Correctly append CMAKE_SHARED_LINKER_FLAGS
Change-Id: Id207f7b7eea7420657162ed666fb4240e3b6e9a1
2020-09-23 13:04:02 -04:00
Jason Tang ac956ac8cb SWDEV-251394 - Support CL_DEVICE_IL_VERSION
Change-Id: If8459d6822d26107914f81d219e94165facd0827
2020-09-10 18:09:15 -04:00
Jason Tang 7ec780519a Add support for CL_PROFILING_COMMAND_COMPLETE
Change-Id: I2acabab8975f7c8619c180795000cb47d4f532ca
2020-09-07 11:15:31 -04:00
Jason Tang 6c13a34a04 Remove refering to gfxipVersion_
Change-Id: I06e3fe5c10ddf50674c69d7de68f208bbfb83f2f
2020-08-24 14:38:16 -04:00
Tao Sang 56443c2c3d Let rocclr decide numa dependence
Change-Id: Idaf8ab1d0563ac39c352219a6dacf95745bdc6b0
2020-07-19 23:29:59 -04:00
Tao Sang 9171896d73 Fix missing numa symbol in building libamdocl64.so
Change-Id: I77eca06345b11b5c8482ab626ef1b60c5fa20ec8
2020-06-23 11:29:28 -04:00
Vlad Sytchenko ac3848a8e6 Enable the use of some warnings when building OCL-ROCclr
Similar to http://gerrit-git.amd.com/c/compute/ec/vdi/+/375385, except no -Wno-strict-aliasing.

With this change only one warning shows up during the build - -Wdeprecated-declarations in cltrace.

Change-Id: Ie335eb9c45287ee1006e6bd65d54d67b41f79604
2020-06-15 15:28:33 -04:00
Matt Arsenault dd5f255c7e Don't add -std flag to CMAKE_CXX_FLAGS
Use the cmake method, and consolidate setting the language standard in
one place.

Change-Id: I96826c31955b1553ed1beb94203c99933075bb0a
2020-06-05 11:22:23 -04:00
Matt Arsenault d191ba6585 Remove build hacks to support old manually set ROCclr variables
Change-Id: Iba8180b7260616a79723a1a9d2b0b206f178e735
2020-05-27 12:53:27 -04:00
Matt Arsenault 9f9d35ad86 Restore attempt to use find_package for ROCclr
94b20323 broke this. This is still mostly a commit order hack until
the ROCclr change is submitted.

Change-Id: I43762963dbc66f1dc83916d2f0e9c90e4fcbf7c1
2020-05-18 14:34:35 -04:00
Payam 94b203235e name change vdi to rocclr
Change-Id: I59650f7082dd118c1fe92309b76a5bdb20eee3c1
2020-04-30 19:06:58 -04:00
Matt Arsenault 585741a040 Use find_package to find rocclr
Maintain compatability with current hardcoded scheme for now for
commit order convenience.

Change-Id: I0b8299fceab1cc405ae5f26a129f2f1ea3d56773
2020-04-28 16:41:53 -04:00
Matt Arsenault 5943e4d93e Don't use intermediate object library
This added an unnecessary level of indirection, and also didn't
automatically pull in interface dependencies from the linked targets.

Change-Id: I7371ab3c184f6045947a96c8a393f2e3452fc5c1
2020-04-24 15:31:35 -04:00
Matt Arsenault fc4afbd0f9 Use cmake features to set C++ version
Change-Id: Icf5dcd781b8fecc7a39117f3c6dee97dcba9dcca
2020-04-21 15:22:50 -04:00
Pruthvi Madugundu 8ba1527661 Make CMAKE_SHARED_LINKER_FLAGS appendable
Signed-off-by: Pruthvi Madugundu <pruthvi.madugundu@amd.com>
Change-Id: I3c23223270976b8746d5b4debf4d846ae0aa4c6f
2020-04-20 13:51:05 -04:00
Vladislav Sytchenko c4a02ce16f Fix Windows build
The D3D interop APIs are now declared in the CL headers, so we need to remove our declarations.

The CL headers also automatically include the D3D headers, which need to be included in a specific order (11 -> 10 -> 9), hence why the includes needed to be reshuffled.

Change-Id: I9bd37ceabec82e8bebd1d9c1a5a672ffc95c41d8
2020-04-07 18:44:01 -04:00
Saleel Kudchadker 4092e3dee3 Update OpenCL 2.2 headers
Update headers as of master https://github.com/KhronosGroup/OpenCL-Headers/
commit/9dde5da9c32cbd78656a5e2417c256922e851111

Change-Id: I698a3a1b92730c52b160b51af95469c2b54331c1
2020-04-02 02:46:20 -04:00
German Andryeyev 25c29a99b1 SWDEV-79445 - Remove cl_amd_object_metadata extension
Change-Id: I0dd3d8a249b407dd9fac4ef32ebe9b14fd5ff859
2020-03-12 15:14:01 -04:00
German Andryeyev 723f0f4e4e SWDEV-222307- Add CMake support for PAL
Use the new config file from VDI for the final link

Change-Id: Ia9dd284b630d82bb9c6fe54e5ddc2f493bd57152
2020-02-14 13:29:32 -05:00
Payam c4a4435ca3 updating cmake comgr search path
Change-Id: I692e55ad8517fe5d3f12267beaa721f6a696d98a
2020-02-10 16:44:03 -05:00
Laurent Morichetti 9207465570 Update copyright info
Change-Id: I426ca741c082f3367c5d17946da6a25edd46a91f
2020-02-04 09:37:45 -08:00
Laurent Morichetti d4c39b88c5 Merge branch 'origin/pghafari/opencl' into lmoriche/amd-master-next 2020-02-03 13:26:46 -08:00