SYCLomatic icon indicating copy to clipboard operation
SYCLomatic copied to clipboard

compile error: no member named 'l2CacheSize' in 'dpct::device_info'

Open zjin-lcf opened this issue 3 years ago • 3 comments

    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 avatar Jan 24 '23 20:01 zjin-lcf

@zjin-lcf it will be implemented when the mapping API is available in the SYCL compiler side.

tomflinda avatar Jan 31 '23 06:01 tomflinda

I think that the SYCL spec committee will add more device info to the spec first. Is that right ?

zjin-lcf avatar Jan 31 '23 13:01 zjin-lcf

@zjin-lcf I think so, or it will be added into https://github.com/intel/llvm/tree/sycl/sycl/doc/extensions/proposed first.

tomflinda avatar Feb 02 '23 08:02 tomflinda