Skip to content

Address compilation warnings from Open Source Intel/LLVM sycl bundle #1277

Closed
@oleksandr-pavlyk

Description

@oleksandr-pavlyk

Deprecation warnings:

/home/runner/work/dpctl/dpctl/libsyclinterface/helper/source/dpctl_utils_helper.cpp:205:18: warning: 'usm_restricted_shared_allocations' is deprecated: deprecated in SYCL 2020 [-Wdeprecated-declarations]
  205 |     case aspect::usm_restricted_shared_allocations:
      |                  ^
/home/runner/work/sycl_bundle/dpcpp_compiler/bin/../include/sycl/info/aspects_deprecated.def:5:1: note: 'usm_restricted_shared_allocations' has been explicitly marked deprecated here
    5 | __SYCL_ASPECT_DEPRECATED(usm_restricted_shared_allocations, 16, "deprecated in SYCL 2020")
      | ^
/home/runner/work/sycl_bundle/dpcpp_compiler/bin/../include/sycl/aspects.hpp:17:10: note: expanded from macro '__SYCL_ASPECT_DEPRECATED'
   17 |   ASPECT __SYCL2020_DEPRECATED(MESSAGE) = ID,
      |          ^
/home/runner/work/sycl_bundle/dpcpp_compiler/bin/../include/sycl/detail/defines_elementary.hpp:55:40: note: expanded from macro '__SYCL2020_DEPRECATED'
   55 | #define __SYCL2020_DEPRECATED(message) __SYCL_DEPRECATED(message)
      |                                        ^
/home/runner/work/sycl_bundle/dpcpp_compiler/bin/../include/sycl/detail/defines_elementary.hpp:46:38: note: expanded from macro '__SYCL_DEPRECATED'
   46 | #define __SYCL_DEPRECATED(message) [[deprecated(message)]]
      |                                      ^
/home/runner/work/dpctl/dpctl/libsyclinterface/helper/source/dpctl_utils_helper.cpp:275:28: warning: 'usm_restricted_shared_allocations' is deprecated: deprecated in SYCL 2020 [-Wdeprecated-declarations]
  275 |         aspectTy = aspect::usm_restricted_shared_allocations;
      |                            ^
/home/runner/work/sycl_bundle/dpcpp_compiler/bin/../include/sycl/info/aspects_deprecated.def:5:1: note: 'usm_restricted_shared_allocations' has been explicitly marked deprecated here
    5 | __SYCL_ASPECT_DEPRECATED(usm_restricted_shared_allocations, 16, "deprecated in SYCL 2020")
      | ^
/home/runner/work/sycl_bundle/dpcpp_compiler/bin/../include/sycl/aspects.hpp:17:10: note: expanded from macro '__SYCL_ASPECT_DEPRECATED'
   17 |   ASPECT __SYCL2020_DEPRECATED(MESSAGE) = ID,
      |          ^
/home/runner/work/sycl_bundle/dpcpp_compiler/bin/../include/sycl/detail/defines_elementary.hpp:55:40: note: expanded from macro '__SYCL2020_DEPRECATED'
   55 | #define __SYCL2020_DEPRECATED(message) __SYCL_DEPRECATED(message)
      |                                        ^
/home/runner/work/sycl_bundle/dpcpp_compiler/bin/../include/sycl/detail/defines_elementary.hpp:46:38: note: expanded from macro '__SYCL_DEPRECATED'
   46 | #define __SYCL_DEPRECATED(message) [[deprecated(message)]]
      |                                      ^
/home/runner/work/dpctl/dpctl/libsyclinterface/helper/source/dpctl_utils_helper.cpp:328:24: warning: 'usm_restricted_shared_allocations' is deprecated: deprecated in SYCL 2020 [-Wdeprecated-declarations]
  328 |         return aspect::usm_restricted_shared_allocations;
      |                        ^

Also use of compiler option -fsycl-link-huge-device-code generates:

clang++: warning: option '-fsycl-link-huge-device-code' is deprecated and will be removed in a future release [-Wdeprecated]

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions