@@ -30,6 +30,7 @@ static int acl_test_svm_memory_support =
30
30
(CL_DEVICE_SVM_COARSE_GRAIN_BUFFER | CL_DEVICE_SVM_FINE_GRAIN_BUFFER |
31
31
CL_DEVICE_SVM_FINE_GRAIN_SYSTEM);
32
32
static bool acl_test_physical_memory_support = true ;
33
+ static bool acl_test_buffer_location_support = true ;
33
34
34
35
// Parts of a valid HAL.
35
36
void acltest_hal_init_device (const acl_system_def_t *def);
@@ -81,6 +82,8 @@ int acltest_hal_set_profile_stop_cycle(unsigned int physical_device_id,
81
82
unsigned int accel_id, uint64_t value);
82
83
int acl_test_hal_has_svm_support (unsigned int physical_device_id, int *value);
83
84
int acl_test_hal_has_physical_mem (unsigned int physical_device_id);
85
+ int acl_test_hal_support_buffer_location (
86
+ const std::vector<cl_device_id> &devices);
84
87
int acl_test_hal_pll_reconfigure (unsigned int physical_device_id,
85
88
const char *pll_settings_str);
86
89
void acl_test_hal_reset_kernels (cl_device_id device);
@@ -128,6 +131,7 @@ static const acl_hal_t simple_hal = {acltest_hal_init_device,
128
131
acltest_hal_set_profile_stop_cycle,
129
132
acl_test_hal_has_svm_support,
130
133
acl_test_hal_has_physical_mem,
134
+ acl_test_hal_support_buffer_location,
131
135
0 ,
132
136
acl_test_hal_pll_reconfigure,
133
137
acl_test_hal_reset_kernels,
@@ -589,6 +593,10 @@ void acl_test_hal_set_physical_memory_support(bool value) {
589
593
acl_test_physical_memory_support = value;
590
594
}
591
595
596
+ void acl_test_hal_set_buffer_location_support (bool value) {
597
+ acl_test_buffer_location_support = value;
598
+ }
599
+
592
600
int acl_test_hal_has_svm_support (unsigned int physical_device_id, int *value) {
593
601
physical_device_id = physical_device_id; // Avoid Windows warning
594
602
*value = acl_test_svm_memory_support;
@@ -600,6 +608,11 @@ int acl_test_hal_has_physical_mem(unsigned int physical_device_id) {
600
608
return acl_test_physical_memory_support;
601
609
}
602
610
611
+ int acl_test_hal_support_buffer_location (
612
+ const std::vector<cl_device_id> &devices) {
613
+ return acl_test_buffer_location_support;
614
+ }
615
+
603
616
int acl_test_hal_pll_reconfigure (unsigned int physical_device_id,
604
617
const char *pll_settings_str) {
605
618
physical_device_id = physical_device_id;
0 commit comments