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

[OpenMP] Fix undeclared identifier in eigen_support.cc #24402

Merged
merged 1 commit into from
Jan 17, 2019
Merged

[OpenMP] Fix undeclared identifier in eigen_support.cc #24402

merged 1 commit into from
Jan 17, 2019

Conversation

samolisov
Copy link
Contributor

When OpenMP is enabled, the following error occurs during a
compilation of the tensorflow/lite/kernels/eigen_support.cc unit:

tensorflow/lite/kernels/eigen_support.cc:42:23: error: use of undeclared
identifier 'context'
Eigen::setNbThreads(context->recommended_num_threads);

The SetEigenNbThreads method already gets the number of threads as the
threads parameter and doesn't need to calculate it using a method of
the context variable, so the invocation of the Eigen::setNbThreads
member must be changed a little bit.

Signed-off-by: Pavel Samolysov samolisov@gmail.com

When OpenMP is enabled, the following error occurs during a
compilation of the `tensorflow/lite/kernels/eigen_support.cc` unit:

tensorflow/lite/kernels/eigen_support.cc:42:23: error: use of undeclared
identifier 'context'
  Eigen::setNbThreads(context->recommended_num_threads);

The `SetEigenNbThreads` method already gets the number of threads as the
`threads` parameter and doesn't need to calculate it using a method of
the `context` variable, so the invocation of the `Eigen::setNbThreads`
member must be changed a little bit.

Signed-off-by: Pavel Samolysov <samolisov@gmail.com>
@ymodak ymodak self-assigned this Dec 17, 2018
@ymodak ymodak requested a review from jdduke December 17, 2018 17:58
@ymodak ymodak added the awaiting review Pull request awaiting review label Dec 17, 2018
@dksb dksb added this to Assigned Reviewer / Pending Review in PR Queue Dec 20, 2018
@dksb dksb added the size:XS CL Change Size: Extra Small label Dec 22, 2018
@tensorflowbutler
Copy link
Member

Nagging Reviewer @jdduke: You have been added as a reviewer to this pull request. Please add your review or reassign. It has been 14 days with no activity and the awaiting review label has been applied.

PR Queue automation moved this from Assigned Reviewer to Approved by Reviewer Jan 7, 2019
Copy link
Member

@jdduke jdduke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, that's embarrassing, thanks for the fix!

@ymodak ymodak added kokoro:force-run Tests on submitted change and removed awaiting review Pull request awaiting review labels Jan 7, 2019
@kokoro-team kokoro-team removed the kokoro:force-run Tests on submitted change label Jan 7, 2019
@ymodak ymodak added the kokoro:force-run Tests on submitted change label Jan 9, 2019
@kokoro-team kokoro-team removed the kokoro:force-run Tests on submitted change label Jan 9, 2019
@andrehentz andrehentz added the comp:lite TF Lite related issues label Jan 11, 2019
@ymodak ymodak added the ready to pull PR ready for merge process label Jan 12, 2019
@tensorflow-copybara tensorflow-copybara merged commit 8db73e8 into tensorflow:master Jan 17, 2019
PR Queue automation moved this from Approved by Reviewer to Merged Jan 17, 2019
tensorflow-copybara pushed a commit that referenced this pull request Jan 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes comp:lite TF Lite related issues ready to pull PR ready for merge process size:XS CL Change Size: Extra Small
Projects
PR Queue
  
Merged
Development

Successfully merging this pull request may close these issues.

None yet

9 participants