Граф коммитов
64512 Коммитов
Автор SHA1 Сообщение Дата
Daniel Phillips 169673a435 kfdtest: Add thunk test for KFD memory availability ioctl
Signed-off-by: Daniel Phillips <Daniel.Phillips@amd.com>
Change-Id: Ic4c1ffefdc3570718a1fce4e53ca5f1ebde8c479
2022-09-21 13:26:38 -04:00
Daniel Phillips 54539f06c7 kfdtest: Add thunk test for KFD memory availability ioctl
Signed-off-by: Daniel Phillips <Daniel.Phillips@amd.com>
Change-Id: Ic4c1ffefdc3570718a1fce4e53ca5f1ebde8c479


[ROCm/ROCR-Runtime commit: 169673a435]
2022-09-21 13:26:38 -04:00
Maneesh Gupta 12c48303c8 Revert "SWDEV-351980 - Update hip_prof_str.h"
This reverts commit c878ce02f6.

Reason for revert: Incorrect patch

Change-Id: I9adba47d0ab18f621b599295bd9d0fd98887f5d3


[ROCm/clr commit: 835b7578dc]
2022-09-21 13:04:38 -04:00
Maneesh Gupta 835b7578dc Revert "SWDEV-351980 - Update hip_prof_str.h"
This reverts commit f296e42803.

Reason for revert: Incorrect patch

Change-Id: I9adba47d0ab18f621b599295bd9d0fd98887f5d3
2022-09-21 13:04:38 -04:00
Maneesh Gupta 65cf138d25 SWDEV-299127 - Merge 'develop' into 'amd-staging'
Change-Id: Ieaaedab15b4d258493d834104b17d9f03a9e478b


[ROCm/hip commit: 2c903087e8]
2022-09-21 17:00:58 +00:00
Maneesh Gupta 2c903087e8 SWDEV-299127 - Merge 'develop' into 'amd-staging'
Change-Id: Ieaaedab15b4d258493d834104b17d9f03a9e478b
2022-09-21 17:00:58 +00:00
ROCm CI Service AccountиLaurent Morichetti 1c5abb630f SWDEV-351980 - Remove the ROCtracer private interface from the public header (#2931)
Change-Id: I03ee584873bc257f2bd8f18e92d94be50ee8a7a8

Co-authored-by: Laurent Morichetti <laurent.morichetti@amd.com>

[ROCm/hip commit: ece11e4ed3]
2022-09-21 22:28:26 +05:30
ROCm CI Service AccountиLaurent Morichetti ece11e4ed3 SWDEV-351980 - Remove the ROCtracer private interface from the public header (#2931)
Change-Id: I03ee584873bc257f2bd8f18e92d94be50ee8a7a8

Co-authored-by: Laurent Morichetti <laurent.morichetti@amd.com>
2022-09-21 22:28:26 +05:30
kjayapra-amd b0825090e9 SWDEV-355727 - Added more rules to target ID comparison in hiprtc.
Change-Id: I56137375c3eb47dd604c7a02bb88f7e3dbe6c04d


[ROCm/clr commit: d870bdb9b1]
2022-09-21 12:18:13 -04:00
kjayapra-amd d870bdb9b1 SWDEV-355727 - Added more rules to target ID comparison in hiprtc.
Change-Id: I56137375c3eb47dd604c7a02bb88f7e3dbe6c04d
2022-09-21 12:18:13 -04:00
Maneesh Gupta c878ce02f6 SWDEV-351980 - Update hip_prof_str.h
Change-Id: Ied27c137aff54e69dc14129e6daad9196479edf9


[ROCm/clr commit: f296e42803]
2022-09-21 11:38:59 +00:00
Maneesh Gupta f296e42803 SWDEV-351980 - Update hip_prof_str.h
Change-Id: Ied27c137aff54e69dc14129e6daad9196479edf9
2022-09-21 11:38:59 +00:00
Laurent Morichetti 0cd3ec5056 SWDEV-351980 - Consolidate registration tables in the roctracer library
Remove the activity_prof::CallbacksTable. The table was redundant with
the information already stored in the roctracer library. Instead use a
single callback into the roctracer library to query whether the activity
is enabled, and to report it.

Change-Id: I2e05b0881bb4a1953c14361d00ea310d02eb6e0c


[ROCm/clr commit: 52eb28930a]
2022-09-21 05:54:09 -04:00
Laurent Morichetti 52eb28930a SWDEV-351980 - Consolidate registration tables in the roctracer library
Remove the activity_prof::CallbacksTable. The table was redundant with
the information already stored in the roctracer library. Instead use a
single callback into the roctracer library to query whether the activity
is enabled, and to report it.

Change-Id: I2e05b0881bb4a1953c14361d00ea310d02eb6e0c
2022-09-21 05:54:09 -04:00
Laurent Morichetti 353f9bc86c SWDEV-351980 - Enable profiling for commands reporting activities
Profiling should be enabled for any command reporting activities as the
activity record captures the profilingInfo's start and end timestamps.

Since IS_PROFILER_ON is only used to determine whether API tracing is
enabled, there is no need to expose it globally, it should be a property
of the activity_prof::CallbacksTable.

Change-Id: I44a0d19ed2862606cfbc9a98c1a07a336ab7e26c


[ROCm/clr commit: e713b5c7d0]
2022-09-21 05:53:59 -04:00
Laurent Morichetti e713b5c7d0 SWDEV-351980 - Enable profiling for commands reporting activities
Profiling should be enabled for any command reporting activities as the
activity record captures the profilingInfo's start and end timestamps.

Since IS_PROFILER_ON is only used to determine whether API tracing is
enabled, there is no need to expose it globally, it should be a property
of the activity_prof::CallbacksTable.

Change-Id: I44a0d19ed2862606cfbc9a98c1a07a336ab7e26c
2022-09-21 05:53:59 -04:00
Laurent Morichetti cbcc94b9e3 SWDEV-351980 - Move activity_ to the ProfilingInfo
The activity_ is only instantiated if profiling is enabled.

Remove the HIP private global record ID. Instead, use the correlation ID
stored in the hip_api_data_t by the profiler while the last HIP function
is in scope.

For NDRange and Copy commands, store the kernel name and byte size
(respectively) in the record.

General cleanups to improve the code's readability.

Change-Id: I01907484b0d9611eb9440c3a7c4865479dc42289


[ROCm/clr commit: 4fbae91468]
2022-09-21 05:53:47 -04:00
Laurent Morichetti 4fbae91468 SWDEV-351980 - Move activity_ to the ProfilingInfo
The activity_ is only instantiated if profiling is enabled.

Remove the HIP private global record ID. Instead, use the correlation ID
stored in the hip_api_data_t by the profiler while the last HIP function
is in scope.

For NDRange and Copy commands, store the kernel name and byte size
(respectively) in the record.

General cleanups to improve the code's readability.

Change-Id: I01907484b0d9611eb9440c3a7c4865479dc42289
2022-09-21 05:53:47 -04:00
Maneesh Gupta aecb2c670d SWDEV-299127 - Merge 'develop' into 'amd-staging'
Change-Id: I486d92f6446aef139235786349d91c15ca816319


[ROCm/hip commit: bef3f4cca7]
2022-09-21 08:50:15 +00:00
Maneesh Gupta bef3f4cca7 SWDEV-299127 - Merge 'develop' into 'amd-staging'
Change-Id: I486d92f6446aef139235786349d91c15ca816319
2022-09-21 08:50:15 +00:00
ROCm CI Service Account 4cd015f49a SWDEV-356299 - Fix hipPeerToPeer_simple Tests (#2953)
- Add hipDeviceSynchronize after hipMemset with device memory, as hipMemset is asynchronous in this case

Change-Id: Ia55d106931984fed450be29c1b745c8069151f76

[ROCm/hip commit: 6e021f1adc]
2022-09-21 14:17:35 +05:30
ROCm CI Service Account 6e021f1adc SWDEV-356299 - Fix hipPeerToPeer_simple Tests (#2953)
- Add hipDeviceSynchronize after hipMemset with device memory, as hipMemset is asynchronous in this case

Change-Id: Ia55d106931984fed450be29c1b745c8069151f76
2022-09-21 14:17:35 +05:30
Satyanvesh Dittakavi b56b4e4d16 SWDEV-355959 - Remove the invalid test Unit_hipStreamPerThread_CoopLaunchMDev (#2952)
[ROCm/hip-tests commit: 32cc365ede]
2022-09-21 14:16:46 +05:30
Satyanvesh Dittakavi 32cc365ede SWDEV-355959 - Remove the invalid test Unit_hipStreamPerThread_CoopLaunchMDev (#2952) 2022-09-21 14:16:46 +05:30
Satyanvesh Dittakavi b5d8ed1795 SWDEV-355959 - Remove the invalid test Unit_hipStreamPerThread_CoopLaunchMDev (#2952)
[ROCm/hip commit: 046a7a193e]
2022-09-21 14:16:46 +05:30
Satyanvesh Dittakavi 046a7a193e SWDEV-355959 - Remove the invalid test Unit_hipStreamPerThread_CoopLaunchMDev (#2952) 2022-09-21 14:16:46 +05:30
Chauncey Hui 939199b98f SWDEV-2 - Change OpenCL version number from 3507 to 3508
[ROCm/clr commit: 5f77772e6e]
2022-09-21 03:00:08 -04:00
Chauncey Hui 5f77772e6e SWDEV-2 - Change OpenCL version number from 3507 to 3508 2022-09-21 03:00:08 -04:00
Laurent Morichetti d43323b5ea SWDEV-351980 - Remove the ROCtracer private interface from the public header
Change-Id: I51d45cca5051f04d3c1b59ca2a9cf1db5fd1ebd4


[ROCm/clr commit: 0b1ea7e075]
2022-09-21 02:41:47 -04:00
Laurent Morichetti 0b1ea7e075 SWDEV-351980 - Remove the ROCtracer private interface from the public header
Change-Id: I51d45cca5051f04d3c1b59ca2a9cf1db5fd1ebd4
2022-09-21 02:41:47 -04:00
Laurent Morichetti 7919db9760 SWDEV-351980 - Consolidate registration tables in the roctracer library
Remove the api_callbacks_table_t that was holding the API activities and
user callbacks. Instead use a single roctracer callback (TracerCallback)
used to report both API activities and callbacks.

Remove the hipInitActivityCallback that was setting the ROCtracer
callback and memory pool for asynchronous activities as it did not
allow disctinct pools to be used for each activity.  Instead, use
hipRegisterTracerCallback to set the single roctracer callback.

Change-Id: I4c10f04f29a6e4cce8caf15db3016c3f72c86b04


[ROCm/clr commit: 82bce811ee]
2022-09-21 02:41:39 -04:00
Laurent Morichetti 82bce811ee SWDEV-351980 - Consolidate registration tables in the roctracer library
Remove the api_callbacks_table_t that was holding the API activities and
user callbacks. Instead use a single roctracer callback (TracerCallback)
used to report both API activities and callbacks.

Remove the hipInitActivityCallback that was setting the ROCtracer
callback and memory pool for asynchronous activities as it did not
allow disctinct pools to be used for each activity.  Instead, use
hipRegisterTracerCallback to set the single roctracer callback.

Change-Id: I4c10f04f29a6e4cce8caf15db3016c3f72c86b04
2022-09-21 02:41:39 -04:00
Laurent Morichetti d4cf83b5d2 SWDEV-351980 - Remove IS_PROFILER_ON
The CallbacksTable::is_enabled() can simply be implemented by checking
if enabled_api_count is > 0. The ROCclr does not use IS_PROFILER_ON
to report asynchronous activities.

Change-Id: Iab3d034357e51282bf2c453b2ac5c9726786b9eb


[ROCm/clr commit: eeddffc1b1]
2022-09-21 02:41:29 -04:00
Laurent Morichetti eeddffc1b1 SWDEV-351980 - Remove IS_PROFILER_ON
The CallbacksTable::is_enabled() can simply be implemented by checking
if enabled_api_count is > 0. The ROCclr does not use IS_PROFILER_ON
to report asynchronous activities.

Change-Id: Iab3d034357e51282bf2c453b2ac5c9726786b9eb
2022-09-21 02:41:29 -04:00
Laurent Morichetti 472b3f3155 SWDEV-351980 - Move hip_api_data and record to the HIP function's stack
Since the hip_api_data and record are only needed at the HIP function's
scope, there is no need to allocate/free them in the ROCtracer activity
callback, they can reside on the HIP function's stack frame.

This solves an issue with the thread local stacks of records the tracer
maintains that are destroyed first (before any global destructor) on
process exit, making it impossible to use HIP functions in global
destructors when the profiler is enabled.

Change-Id: Ib1d70124d009a44dc1f08d41edff95e5f9f84369


[ROCm/clr commit: 85fd969253]
2022-09-21 02:41:15 -04:00
Laurent Morichetti 85fd969253 SWDEV-351980 - Move hip_api_data and record to the HIP function's stack
Since the hip_api_data and record are only needed at the HIP function's
scope, there is no need to allocate/free them in the ROCtracer activity
callback, they can reside on the HIP function's stack frame.

This solves an issue with the thread local stacks of records the tracer
maintains that are destroyed first (before any global destructor) on
process exit, making it impossible to use HIP functions in global
destructors when the profiler is enabled.

Change-Id: Ib1d70124d009a44dc1f08d41edff95e5f9f84369
2022-09-21 02:41:15 -04:00
ROCm CI Service Account aa78d5fef1 SWDEV-353686 - add default value for userobj (#2895)
Change-Id: I4cc993128f438fba156207fd4c4c9ce18380981b

[ROCm/hip commit: 1e97d5b9ab]
2022-09-20 15:28:47 -07:00
ROCm CI Service Account 1e97d5b9ab SWDEV-353686 - add default value for userobj (#2895)
Change-Id: I4cc993128f438fba156207fd4c4c9ce18380981b
2022-09-20 15:28:47 -07:00
pghafari c328f3b15f SWDEV-356554 - updated hipDeviceGetDefaultMemPool
updated the error check/messages

Change-Id: I518d497a82a14862d5168cc423aeaa20075336b8


[ROCm/clr commit: 42b5a6d5af]
2022-09-20 16:42:48 -04:00
pghafari 42b5a6d5af SWDEV-356554 - updated hipDeviceGetDefaultMemPool
updated the error check/messages

Change-Id: I518d497a82a14862d5168cc423aeaa20075336b8
2022-09-20 16:42:48 -04:00
pghafari 2363e4dd78 SWDEV-356582 - set the parent node in Graph Clone
Change-Id: I9b685ca9827b0a0dddc3ef6a0394b298d1031f04


[ROCm/clr commit: f1d8a02122]
2022-09-20 16:42:29 -04:00
pghafari f1d8a02122 SWDEV-356582 - set the parent node in Graph Clone
Change-Id: I9b685ca9827b0a0dddc3ef6a0394b298d1031f04
2022-09-20 16:42:29 -04:00
ROCm CI Service Account fd667babba SWDEV-320512 - setup for enabling hipcc.bin by default (#2930)
Change-Id: I6436b79b370434abc1250da560462c6d3398529d


[ROCm/hip commit: 2e7d9a894d]
2022-09-20 12:18:46 -07:00
ROCm CI Service Account 2e7d9a894d SWDEV-320512 - setup for enabling hipcc.bin by default (#2930)
Change-Id: I6436b79b370434abc1250da560462c6d3398529d
2022-09-20 12:18:46 -07:00
German 46409cc4e6 SWDEV-286150 - Switch PAL_DISABLE_SDMA to release build
Change-Id: Ibf800e1c767fd1e6bc9ebc4fc56b767b0a90bdef


[ROCm/clr commit: df77380cee]
2022-09-20 13:47:14 -04:00
German df77380cee SWDEV-286150 - Switch PAL_DISABLE_SDMA to release build
Change-Id: Ibf800e1c767fd1e6bc9ebc4fc56b767b0a90bdef
2022-09-20 13:47:14 -04:00
Chauncey Hui 0226858812 SWDEV-2 - Change OpenCL version number from 3506 to 3507
[ROCm/clr commit: ae8b862f1c]
2022-09-20 03:00:08 -04:00
Chauncey Hui ae8b862f1c SWDEV-2 - Change OpenCL version number from 3506 to 3507 2022-09-20 03:00:08 -04:00
Ajay bfea9634a5 SWDEV-357334 - hipEventRecord_spt() to take optional stream arg
Change-Id: I19540c577e2c3635a00379f814350ada41020af2


[ROCm/clr commit: 2801e4fe63]
2022-09-19 20:28:13 +00:00
Ajay 2801e4fe63 SWDEV-357334 - hipEventRecord_spt() to take optional stream arg
Change-Id: I19540c577e2c3635a00379f814350ada41020af2
2022-09-19 20:28:13 +00:00