Skip to content

Commit 01f0f67

Browse files
authored
[SYCLomatic#392] Enable test for cudaprop memory clock rate and buswidth (#182)
Signed-off-by: Ni, Wenhui <[email protected]>
1 parent 11a075f commit 01f0f67

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

features/feature_case/deviceProp/deviceProp.cu

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ int main() {
1717
int a5 = deviceProp.textureAlignment;
1818
int a6 = deviceProp.kernelExecTimeoutEnabled;
1919
int a7 = deviceProp.ECCEnabled;
20+
int freq = deviceProp.memoryClockRate;
21+
int buswidth = deviceProp.memoryBusWidth;
2022
size_t share_multi_proc_mem_size = deviceProp.sharedMemPerMultiprocessor;
2123
return 0;
2224
}

help_function/src/device_device_info.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@ int main() {
5454
// test_feature:get_local_mem_size()
5555
Info.get_local_mem_size();
5656

57+
// test_feature:get_memory_clock_rate();
58+
Info.get_memory_clock_rate();
59+
60+
// test_feature:get_memory_bus_width();
61+
Info.get_memory_bus_width();
62+
5763
const char* Name = "DEVNAME";
5864
// test_feature:set_name(Name)
5965
Info.set_name(Name);

0 commit comments

Comments
 (0)