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

Allow to turn on/off clad derivative scanning #97

Closed
vgvassilev opened this issue Oct 4, 2018 · 0 comments
Closed

Allow to turn on/off clad derivative scanning #97

vgvassilev opened this issue Oct 4, 2018 · 0 comments

Comments

@vgvassilev
Copy link
Owner

Such mechanism would help clients to selectively enable the derivative computation. Eg:

#pragma clad on
// synthesized code which we know will have a call to clad::*
#pragma clad off
vgvassilev added a commit that referenced this issue Oct 9, 2018
This allows us to implement regions where clad is disabled or enabled.
For example,

// clad will igonre all declarations containing clad::*
// clad will produce derivatives.

Note that we do not support this behavior inside declarations. Eg.
void f() {
// This does not work.
// clad will take the last pragma switch value
}

Fixes #97
vgvassilev added a commit that referenced this issue Oct 9, 2018
This allows us to implement regions where clad is disabled or enabled.
For example,

// clad will igonre all declarations containing clad::*
// clad will produce derivatives.

Note that we do not support this behavior inside declarations. Eg.
void f() {
// This does not work.
// clad will take the last pragma switch value
}

Fixes #97
vgvassilev added a commit that referenced this issue Oct 10, 2018
This allows us to implement regions where clad is disabled or enabled.
For example,

// clad will igonre all declarations containing clad::*
// clad will produce derivatives.

Note that we do not support this behavior inside declarations. Eg.
void f() {
// This does not work.
// clad will take the last pragma switch value
}

Fixes #97
vgvassilev added a commit that referenced this issue Oct 11, 2018
This allows us to implement regions where clad is disabled or enabled.
For example,

// clad will igonre all declarations containing clad::*
// clad will produce derivatives.

Note that we do not support this behavior inside declarations. Eg.
void f() {
// This does not work.
// clad will take the last pragma switch value
}

Fixes #97
vgvassilev added a commit that referenced this issue Oct 14, 2018
This allows us to implement regions where clad is disabled or enabled.
For example,

// clad will igonre all declarations containing clad::*
// clad will produce derivatives.

Note that we do not support this behavior inside declarations. Eg.
void f() {
// This does not work.
// clad will take the last pragma switch value
}

Fixes #97
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