SYCLomatic
SYCLomatic copied to clipboard
compile error: no member named 'l2CacheSize' in 'dpct::device_info'
cudaDeviceProp properties;
result = cudaGetDeviceProperties(&properties, 0);
std::cout << "L2 Cache Size: " << properties.l2CacheSize / 1024 / 1024 << " MB" << std::endl;
postnote https://github.com/intel/llvm/issues/8093
@zjin-lcf it will be implemented when the mapping API is available in the SYCL compiler side.
I think that the SYCL spec committee will add more device info to the spec first. Is that right ?
@zjin-lcf I think so, or it will be added into https://github.com/intel/llvm/tree/sycl/sycl/doc/extensions/proposed first.