Skip to content

Commit 18ba075

Browse files
authored
[SYCLomatic] Add the migration of the device property unifiedAddressing. (#2722)
Signed-off-by: Chen, Sheng S <sheng.s.chen@intel.com>
1 parent 1531596 commit 18ba075

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

clang/lib/DPCT/RulesLang/MapNamesLang.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ const MapNamesLang::MapTy DeviceInfoVarRule::PropNamesMap{
183183
{"maxTexture2D", "image2d_max"},
184184
{"maxTexture3D", "image3d_max"},
185185
{"regsPerBlock", "max_register_size_per_work_group"},
186+
{"unifiedAddressing", "host_unified_memory"},
186187
// ...
187188
};
188189

clang/test/dpct/device001.cu

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ int main(int argc, char **argv) {
3535

3636
// CHECK: dpct::device_info deviceProp;
3737
cudaDeviceProp deviceProp;
38-
38+
// CHECK: deviceProp.get_host_unified_memory();
39+
deviceProp.unifiedAddressing;
3940
// CHECK: std::array<unsigned char, 16> uuid = deviceProp.get_uuid();
4041
cudaUUID_t uuid = deviceProp.uuid;
4142
// CHECK: deviceProp.set_uuid(uuid);

0 commit comments

Comments
 (0)