mirror of
https://github.com/vortexgpgpu/vortex.git
synced 2025-04-23 21:39:10 -04:00
minor update
This commit is contained in:
parent
e84f978502
commit
27a9e30857
2 changed files with 8 additions and 7 deletions
|
@ -25,12 +25,12 @@ cache:
|
|||
- $HOME/build64
|
||||
|
||||
install:
|
||||
- if [ ! -d "$TOOLDIR" ] || [ -z "$(ls -A $TOOLDIR)" ] || [ "$(cat "$TOOLDIR/version.txt")" != "v0.1" ]; then
|
||||
- if [ ! -d "$TOOLDIR" ] || [ -z "$(ls -A $TOOLDIR)" ] || [ "$(cat "$TOOLDIR/version.txt")" != "v0.2" ]; then
|
||||
rm -rf $TOOLDIR;
|
||||
mkdir -p $TOOLDIR;
|
||||
cd $HOME/build$XLEN;
|
||||
./ci/toolchain_install.sh --all;
|
||||
echo "v0.1" > "$TOOLDIR/version.txt";
|
||||
echo "v0.2" > "$TOOLDIR/version.txt";
|
||||
fi
|
||||
- if [ ! -d "$HOME/third_party" ] || [ -z "$(ls -A $HOME/third_party)" ] || [ "$(cat "$HOME/third_party/version.txt")" != "v0.1" ]; then
|
||||
rm -rf $HOME/third_party;
|
||||
|
|
|
@ -119,12 +119,13 @@ void __libc_fini_array (void) {
|
|||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
#define MAX_CORES 64
|
||||
|
||||
volatile int g_cxa_locks[MAX_CORES] = {0};
|
||||
*/
|
||||
|
||||
void __cxa_lock() {
|
||||
int core_id = vx_core_id();
|
||||
/*int core_id = vx_core_id();
|
||||
g_cxa_locks[core_id] = 1;
|
||||
vx_fence();
|
||||
for (int i = 1; i < MAX_CORES; ++i) {
|
||||
|
@ -132,13 +133,13 @@ void __cxa_lock() {
|
|||
while (g_cxa_locks[other]) {
|
||||
vx_fence(); // cache coherence not supported, so we need to flush the caches
|
||||
}
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
void __cxa_unlock() {
|
||||
vx_fence();
|
||||
/*vx_fence();
|
||||
int core_id = vx_core_id();
|
||||
g_cxa_locks[core_id] = 0;
|
||||
g_cxa_locks[core_id] = 0;*/
|
||||
}
|
||||
|
||||
#define MAX_FEXITS 64
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue