Skip to content

Commit e160114

Browse files
committed
WIP: support dmr and grn
1 parent f4b8fa8 commit e160114

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

cmake/compiler/ispc.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ if (ISPC_X86_ENABLED)
7878
define_ispc_isa_options(AVX512KNL avx512knl-x16)
7979
define_ispc_isa_options(AVX512SKX avx512skx-x16 avx512skx-x8)
8080
define_ispc_isa_options(AVX512SPR avx512spr-x16 avx512spr-x8)
81+
define_ispc_isa_options(AVX512DMR avx10.2dmr-x16 avx10.2dmr-x8)
82+
define_ispc_isa_options(AVX512GNR avx512gnr-x16 avx512gnr-x8)
8183
endif()
8284

8385
macro(append_ispc_target_list ISA_NAME)

modules/cpu/ISPCDevice.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ void ISPCDevice::commit()
318318
#ifndef OSPRAY_TARGET_SYCL
319319
// Output device info string
320320
const char *isaNames[] = {
321-
"unknown", "SSE2", "SSE4", "AVX", "AVX2", "AVX512SKX", "NEON"};
321+
"unknown", "SSE2", "SSE4", "AVX", "AVX2", "AVX512SKX", "AVX512DMR", "AVX512GNR", "NEON"};
322322
postStatusMsg(OSP_LOG_INFO)
323323
<< "Using ISPC device with " << isaNames[ispc::ISPCDevice_isa()]
324324
<< " instruction set";

modules/cpu/ISPCDevice.ispc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,12 @@ export uniform int ISPCDevice_isa()
3636
return 4;
3737
#elif defined(ISPC_TARGET_AVX512SKX)
3838
return 5;
39-
#elif defined(ISPC_TARGET_NEON)
39+
#elif defined(ISPC_TARGET_AVX512DMR)
4040
return 6;
41+
#elif defined(ISPC_TARGET_AVX512GNR)
42+
return 7;
43+
#elif defined(ISPC_TARGET_NEON)
44+
return 8;
4145
#else
4246
return 0;
4347
#endif

0 commit comments

Comments
 (0)