summaryrefslogtreecommitdiff
path: root/expt_0516.cu
diff options
context:
space:
mode:
authorKunoiSayami <[email protected]>2023-05-17 02:31:29 +0800
committerKunoiSayami <[email protected]>2023-05-17 02:31:29 +0800
commite503cc4de4f7f2e3387e55c77ab1690f709b7687 (patch)
tree8a7e5d9bcc3cc59b999209b444062c434e1812bf /expt_0516.cu
parentff0640807f810b5ac3d9f7a831b60e1266608a08 (diff)
feat(exp): Add expt_0516_2
Signed-off-by: KunoiSayami <[email protected]>
Diffstat (limited to 'expt_0516.cu')
-rw-r--r--expt_0516.cu2
1 files changed, 1 insertions, 1 deletions
diff --git a/expt_0516.cu b/expt_0516.cu
index 4d9be45..f141027 100644
--- a/expt_0516.cu
+++ b/expt_0516.cu
@@ -204,7 +204,7 @@ void readFile(char const *filename, long sample_length,
long pow_for_sample(long n) {
auto x = 2;
- for (int i = 0; i < n; i++) {
+ for (int i = 1; i < n; i++) {
x *= 2;
}
return x - 1;