Performance hit using AAD #30
-
|
First, thanks for the outstanding work on enabling AAD in QuantLib. I have a problem with performance degradation when pricing many swaps with AD enabled. Pricing 500 swaps is taking 3x using AD than without. Pricing 10,000 swaps, however, takes 18x time (36x using Release build). The performance hit scales linearly so the XAD code seems to have O(N^2) time complexity.
My example code seems quite straight forward, following the AdjointSwapXAD in QuantLib-Risks. Is this to be expected or could it be improved on somehow? I built the example below with "windows-xad clang-debug" and "windows-xad-clang-release" configuration on Windows 11. Kind Regards |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Closing this as it has been moved to in issue in #31 |
Beta Was this translation helpful? Give feedback.
Closing this as it has been moved to in issue in #31