Comments (6)
The correct macro name is -DUSE_PTHREAD
, not -DUSE_PTHREAD**S**
.
from coremark.
Aha! Thank you in return for the typo catch. =)
from coremark.
-DUSE_FORK worked, for what that's worth; the problem seems limited to PTHREAD.
from coremark.
The pthread library is not linked by default. I will add a note to the README. You need to modify the core_portme.mak
file for your platform, adding -lpthread
to LFLAGS_END
. Example edit to the linux64
folder:
:
#Flag: LFLAGS_END
# Define any libraries needed for linking or other flags that should come at the end of the link line (e.g. linker scripts).
# Note: On certain platforms, the default clock_gettime implementation is supported but requires linking of librt.
LFLAGS_END += -lrt -lpthread
# Flag: PORT_SRCS
# Port specific source files can be added here
PORT_SRCS = $(PORT_DIR)/core_portme.c
:
from coremark.
@jimsalterjrs Also, thanks for pointing this out!
from coremark.
Still didn't get us there.
gcc -O2 -Ilinux64 -I. -DFLAGS_STR=\""-O2 -DMULTITHREAD=16 -DUSE_PTHREADS -DPERFORMANCE_RUN=1 -lrt -lpthread"\" -DITERATIONS=0 -DMULTITHREAD=16 -DUSE_PTHREADS -DPERFORMANCE_RUN=1 core_list_join.c core_main.c core_matrix.c core_state.c core_util.c linux64/core_portme.c -o ./coremark.exe -lrt -lpthread
In file included from coremark.h:38,
from core_list_join.c:19:
linux64/core_portme.h:270:2: error: #error "Please implement multicore functionality in core_portme.c to use multiple contexts."
270 | #error \
| ^~~~~
In file included from coremark.h:38,
from core_main.c:23:
linux64/core_portme.h:270:2: error: #error "Please implement multicore functionality in core_portme.c to use multiple contexts."
270 | #error \
| ^~~~~
In file included from coremark.h:38,
from core_matrix.c:19:
linux64/core_portme.h:270:2: error: #error "Please implement multicore functionality in core_portme.c to use multiple contexts."
270 | #error \
| ^~~~~
In file included from coremark.h:38,
from core_state.c:19:
linux64/core_portme.h:270:2: error: #error "Please implement multicore functionality in core_portme.c to use multiple contexts."
270 | #error \
| ^~~~~
In file included from coremark.h:38,
from core_util.c:19:
linux64/core_portme.h:270:2: error: #error "Please implement multicore functionality in core_portme.c to use multiple contexts."
270 | #error \
| ^~~~~
In file included from ./coremark.h:38,
from linux64/core_portme.c:21:
linux64/core_portme.h:270:2: error: #error "Please implement multicore functionality in core_portme.c to use multiple contexts."
270 | #error \
| ^~~~~
linux64/core_portme.c:417:2: error: #error "Please implement multicore functionality in core_portme.c to use multiple contexts."
417 | #error \
| ^~~~~
make[2]: *** [Makefile:86: compile] Error 1
This was with core_portme.mak
edited as follows:
#Flag: LFLAGS_END
# Define any libraries needed for linking or other flags that should come>
# Note: On certain platforms, the default clock_gettime implementation is>
LFLAGS_END += -lrt
LFLAGS_END += -lpthread
# Flag: PORT_SRCS
# Port specific source files can be added here
PORT_SRCS = $(PORT_DIR)/core_portme.c
from coremark.
Related Issues (20)
- Failure on 32bit Rasbian HOT 1
- Question regarding "Must execute for at least 10 secs for a valid result" HOT 7
- Makefile:44: *** missing separator. Stop. HOT 2
- Thread creation failure not tested HOT 2
- ee_u32 accessed with %d format specifier HOT 2
- porting coremark for Aurix Tricore TC3xx
- coremark was impacted by some extra print HOT 4
- How to calculate the coremark score i.e. coremark/MHz ? HOT 2
- Building with `-Wall and -Wextra` creates warnings HOT 1
- can the loop index variable use `size_t` type instead of ee_u32? HOT 6
- Reliability of the result HOT 1
- How to deploy known_id=2 in MCU's coremark test? HOT 2
- coremark can test mutiCore CPU? HOT 1
- Question regarding type ee_f32
- typo in coremark.h
- Library-function test-driver HOT 1
- Error while running the coremark with gcc HOT 2
- Running coremark on the spike for 31000 times
- Add support for Mac OS
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coremark.