Skip to content

Commit 93f6692

Browse files
Swap float and double
2 parents 7df38e3 + fa92e45 commit 93f6692

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The following container contains the dependencies to build and run the benchmark
1717
Pull and run the container, then follow the steps of the section [Build and Run](#build-and-run).
1818
```
1919
docker pull registry.cern.ch/ngt-wp1.7/wp1.7-soa-benchmark:latest
20-
docker run -it --rm wp1.7-soa-benchmark:latest bash
20+
docker run -it --rm registry.cern.ch/ngt-wp1.7/wp1.7-soa-benchmark:latest bash
2121
```
2222
The corresponding Dockerfile can be found here: [wp1.7-soa-benchmark-image](https://github.com/cern-nextgen/wp1.7-soa-benchmark-image)
2323

benchmark.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
#include <iostream>
1919

20+
/* AoS-like access (except for the baseline) */
2021
#ifdef SOA_BOOST
2122
#define MEMBER_ACCESS(OBJ, MEMBER, INDEX) OBJ[INDEX].MEMBER()
2223
#elif defined(SOA_MANUAL)
@@ -25,6 +26,15 @@
2526
#define MEMBER_ACCESS(OBJ, MEMBER, INDEX) OBJ[INDEX].MEMBER
2627
#endif
2728

29+
/* SoA-like access (except for Oliver version) */
30+
// #ifdef SOA_BOOST
31+
// #define MEMBER_ACCESS(OBJ, MEMBER, INDEX) OBJ.MEMBER(INDEX)
32+
// #elif defined(SOA_MANUAL)
33+
// #define MEMBER_ACCESS(OBJ, MEMBER, INDEX) OBJ.MEMBER[INDEX]
34+
// #else
35+
// #define MEMBER_ACCESS(OBJ, MEMBER, INDEX) OBJ[INDEX].MEMBER
36+
// #endif
37+
2838
using Vector3D = Eigen::Vector3d;
2939
using Matrix3D = Eigen::Matrix3d;
3040

0 commit comments

Comments
 (0)