Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
kchristin22 committed Nov 20, 2024
1 parent 7d9c457 commit c65bd10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demos/CUDA/BlackScholes/helper/helper_grad_verify.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const int OPT_SZ = OPT_N * sizeof(float);
const float RISKFREE = 0.02f;
const float VOLATILITY = 0.30f;

#define DIV_UP(a, b) (((a) + (b)-1) / (b))
#define DIV_UP(a, b) (((a) + (b) - 1) / (b))

double d1(double S, double X, double T) {
return (log(S / X) + (RISKFREE + 0.5 * VOLATILITY * VOLATILITY) * T) /
Expand Down

0 comments on commit c65bd10

Please sign in to comment.