Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oneAPI tbb 2021.6.0 compatibility issue... #58

Open
jiapei-nexera opened this issue Jun 30, 2022 · 0 comments
Open

oneAPI tbb 2021.6.0 compatibility issue... #58

jiapei-nexera opened this issue Jun 30, 2022 · 0 comments

Comments

@jiapei-nexera
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant