Skip to content

oneAPI tbb 2021.6.0 compatibility issue... #58

@jiapei-nexera

Description

@jiapei-nexera
In file included from ......pptk/pptk/kdtree/src/kdtree.h:254,
                 from ......pptk/pptk/kdtree/kdtree_wrapper.cpp:3:
......pptk/pptk/kdtree/src/kdtree-impl.h:631:36: error: expected class-name before ‘{’ token
  631 | class BuildTask : public tbb::task {
      |                                    ^
......pptk/pptk/kdtree/src/kdtree-impl.h:650:8: error: ‘task’ in namespace ‘tbb’ does not name a type
  650 |   tbb::task* execute() {
      |        ^~~~
In file included from /opt/intel/oneapi/tbb/latest/include/tbb/task.h:17,
                 from ......pptk/pptk/kdtree/src/kdtree-impl.h:18,
                 from ......pptk/pptk/kdtree/src/kdtree.h:254,
                 from ......pptk/pptk/kdtree/kdtree_wrapper.cpp:3:
/opt/intel/oneapi/tbb/latest/include/tbb/../oneapi/tbb/task.h:26:11: note: ‘tbb::v1::task’ declared here
   26 | namespace task {
      |           ^~~~
In file included from ......pptk/pptk/kdtree/src/kdtree.h:254,
                 from ......pptk/pptk/kdtree/kdtree_wrapper.cpp:3:
......pptk/pptk/kdtree/src/kdtree-impl.h: In function ‘void pointkd::impl::BuildTree(pointkd::Node<T>*&, pointkd::Box<T, dim>&, std::vector<_Tp>&, std::vector<int>&, std::vector<int>&, const T*, int, const pointkd::BuildParams&)’:
......pptk/pptk/kdtree/src/kdtree-impl.h:792:26: error: ‘allocate_root’ is not a member of ‘tbb::v1::task’
  792 |         *new (tbb::task::allocate_root())
      |                          ^~~~~~~~~~~~~
......pptk/pptk/kdtree/src/kdtree-impl.h:795:16: error: ‘spawn_root_and_wait’ is not a member of ‘tbb::v1::task’
  795 |     tbb::task::spawn_root_and_wait(root_task);
      |                ^~~~~~~~~~~~~~~~~~~
In file included from ......pptk/pptk/processing/estimate_normals/../../kdtree/src/kdtree.h:254,
                 from ......pptk/pptk/processing/estimate_normals/estimate_normals.cpp:9:
......pptk/pptk/processing/estimate_normals/../../kdtree/src/kdtree-impl.h:631:36: error: expected class-name before ‘{’ token
  631 | class BuildTask : public tbb::task {
      |                                    ^
......pptk/pptk/processing/estimate_normals/../../kdtree/src/kdtree-impl.h:650:8: error: ‘task’ in namespace ‘tbb’ does not name a type
  650 |   tbb::task* execute() {
      |        ^~~~
In file included from /opt/intel/oneapi/tbb/latest/include/tbb/task.h:17,
                 from ......pptk/pptk/processing/estimate_normals/../../kdtree/src/kdtree-impl.h:18,
                 from ......pptk/pptk/processing/estimate_normals/../../kdtree/src/kdtree.h:254,
                 from ......pptk/pptk/processing/estimate_normals/estimate_normals.cpp:9:
/opt/intel/oneapi/tbb/latest/include/tbb/../oneapi/tbb/task.h:26:11: note: ‘tbb::v1::task’ declared here
   26 | namespace task {
      |           ^~~~
In file included from ......pptk/pptk/processing/estimate_normals/../../kdtree/src/kdtree.h:254,
                 from ......pptk/pptk/processing/estimate_normals/estimate_normals.cpp:9:
......pptk/pptk/processing/estimate_normals/../../kdtree/src/kdtree-impl.h: In function ‘void pointkd::impl::BuildTree(pointkd::Node<T>*&, pointkd::Box<T, dim>&, std::vector<_Tp>&, std::vector<int>&, std::vector<int>&, const T*, int, const pointkd::BuildParams&)’:
......pptk/pptk/processing/estimate_normals/../../kdtree/src/kdtree-impl.h:792:26: error: ‘allocate_root’ is not a member of ‘tbb::v1::task’
  792 |         *new (tbb::task::allocate_root())
      |                          ^~~~~~~~~~~~~
......pptk/pptk/processing/estimate_normals/../../kdtree/src/kdtree-impl.h:795:16: error: ‘spawn_root_and_wait’ is not a member of ‘tbb::v1::task’
  795 |     tbb::task::spawn_root_and_wait(root_task);
      |                ^~~~~~~~~~~~~~~~~~~
......pptk/pptk/processing/estimate_normals/estimate_normals.cpp: In function ‘void estimate_normals(std::vector<_Tp>*, std::vector<_Tp>*, std::vector<int>*, const std::vector<_Tp>&, std::size_t, T, const std::vector<int>*, int, bool, int)’:
......pptk/pptk/processing/estimate_normals/estimate_normals.cpp:51:8: error: ‘task_scheduler_init’ is not a member of ‘tbb’
   51 |   tbb::task_scheduler_init(1);  // use just 1 thread for k-d tree queries

Metadata

Metadata

Assignees

No one assigned

    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