NokiaTube | New address | Mode Phone | On high quality
Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Java CI with Maven

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v5
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn -B package --file pom.xml
2 changes: 1 addition & 1 deletion .metadata/version.ini
Original file line number Diff line number Diff line change
@@ -1 +1 @@
org.eclipse.core.runtime=1
org.eclipse.core.runtime=1
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"java.configuration.updateBuildConfiguration": "interactive"
}
}
2 changes: 1 addition & 1 deletion AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ alphabetical order.
Name Affiliation(s)
--------------------------- -------------------------------------
Correia, Ivo University of Coimbra
Fonseca, Alcides University of Coimbra
Fonseca, Alcides University of Coimbra
Mohr, Manuel University of Karlsruhe
Rafael, João University of Coimbra
Stork, Sven Carnegie Mellon University
5 changes: 2 additions & 3 deletions LICENSE.GPL
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ modification follow.

"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.

"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
Expand Down Expand Up @@ -510,7 +510,7 @@ actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.

If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
Expand Down Expand Up @@ -673,4 +673,3 @@ may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.

3 changes: 1 addition & 2 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,5 @@ Config File:

Inside each AeminiumRuntime project, you may place a aeminiumrt.config file
containing the configuration for your project. This may contain default values
for debugging (including graphviz output), performance settings as well as
for debugging (including graphviz output), performance settings as well as
parallelization thresholds.

10 changes: 5 additions & 5 deletions aeminiumrt.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# The AEminium runtime will first try to read the configuration file to which
# the environment variable $AEMINIUMRT_CONFIG points to. If the variable is not
# set it will continue to find the configuration file 'aeminiumrt.config' in the
# The AEminium runtime will first try to read the configuration file to which
# the environment variable $AEMINIUMRT_CONFIG points to. If the variable is not
# set it will continue to find the configuration file 'aeminiumrt.config' in the
# current working directory. If no configuration file is found then then built-in
# default values are used.

Expand Down Expand Up @@ -58,7 +58,7 @@ FifoDataGroup.graphVizShowLockingOrder = true
# worker thread configuration
#============================================================================
WorkerThread.pollingCount = 10


#============================================================================
# blocking work stealing configuration configurations
Expand All @@ -78,7 +78,7 @@ BlockingThreadPool.maxThreads = 16

#============================================================================
# ParallelizationDecider
#============================================================================
#============================================================================
DeciderFactory.implementation = aeminium.runtime.implementations.implicitworkstealing.decider.SysMon2
SysMon2.parallelizeThreshold = 50
SysMon2.memoryThreshold = 80
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/aeminium/runtime/AtomicTask.java
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2010-11 The AEminium Project (see AUTHORS file)
*
*
* This file is part of Plaid Programming Language.
*
* Plaid Programming Language is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
*
* Plaid Programming Language is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
Expand All @@ -22,7 +22,7 @@
/*
* Task associated with a DataGroup. Only one AtomicTask can be executed
* at a given time for each DataGroup.
*
*
* The behavior should be similar to synchronize(dg).
*/
public interface AtomicTask extends Task {
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/aeminium/runtime/BlockingTask.java
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2010-11 The AEminium Project (see AUTHORS file)
*
*
* This file is part of Plaid Programming Language.
*
* Plaid Programming Language is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
*
* Plaid Programming Language is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
Expand Down
12 changes: 6 additions & 6 deletions src/main/java/aeminium/runtime/Body.java
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2010-11 The AEminium Project (see AUTHORS file)
*
*
* This file is part of Plaid Programming Language.
*
* Plaid Programming Language is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
*
* Plaid Programming Language is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
Expand All @@ -20,13 +20,13 @@
package aeminium.runtime;

/**
* Represents the task body that is executed by the runtime
* Represents the task body that is executed by the runtime
*/
public interface Body {
/**
* This method contains the code of the body, that is executed by the task.
*
* This method contains the code of the body, that is executed by the task.
*
* @param current Reference to the associated task object.
*/
public void execute(final Runtime rt, final Task current) throws Exception;
}
}
6 changes: 3 additions & 3 deletions src/main/java/aeminium/runtime/DataGroup.java
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2010-11 The AEminium Project (see AUTHORS file)
*
*
* This file is part of Plaid Programming Language.
*
* Plaid Programming Language is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
*
* Plaid Programming Language is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
Expand All @@ -20,4 +20,4 @@
package aeminium.runtime;

/* Opaque interface for Data Groups */
public interface DataGroup {}
public interface DataGroup {}
20 changes: 10 additions & 10 deletions src/main/java/aeminium/runtime/ErrorHandler.java
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2010-11 The AEminium Project (see AUTHORS file)
*
*
* This file is part of Plaid Programming Language.
*
* Plaid Programming Language is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
*
* Plaid Programming Language is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
Expand All @@ -22,34 +22,34 @@
public interface ErrorHandler {
/**
* Called when the execution of task's body threw exception 'e'.
*
*
* @param task
* @param exception
*/
public void handleTaskException(final Task task, final Throwable t);

/**
* Called when a deadlock in locking has been detected.
*/
public void handleLockingDeadlock();

/**
* Called when a cycle in task's dependencies is detected.
*
*
* @param task
*/
public void handleDependencyCycle(final Task task);

/**
* Called if task has been scheduled twice.
*
*
* @param task
*/
public void handleTaskDuplicatedSchedule(final Task task);

/**
* Called when some internal error occurred.
*
*
* @param err
*/
public void handleInternalError(final Error err);
Expand Down
22 changes: 11 additions & 11 deletions src/main/java/aeminium/runtime/Hints.java
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2010-11 The AEminium Project (see AUTHORS file)
*
*
* This file is part of Plaid Programming Language.
*
* Plaid Programming Language is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
*
* Plaid Programming Language is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
Expand All @@ -21,13 +21,13 @@

/**
* Task hints.
*
*
* @author sven
*
*/
public final class Hints {
private Hints() {}

/**
* Base offset to leave the lower bits unused.
*/
Expand Down Expand Up @@ -60,22 +60,22 @@ private Hints() {}
* Task that are lightweight.
*/
public static final short LARGE = 1<<(OFFSET+6);

/**
* Convert hints to string representation.
*
*
* @param hints
* @return
*/

public static boolean check(short hints, short test) {
return ((hints & test) == test);
}
}

private static void addIfHint(short hints, short test, String name, StringBuilder sb) {
if ((hints & test) == test) sb.append(name + "|");
}

public static final String toString(short hints) {
StringBuilder sb = new StringBuilder();
sb.append("[");
Expand All @@ -89,4 +89,4 @@ public static final String toString(short hints) {
sb.append("]");
return sb.toString();
}
}
}
4 changes: 2 additions & 2 deletions src/main/java/aeminium/runtime/NonBlockingTask.java
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2010-11 The AEminium Project (see AUTHORS file)
*
*
* This file is part of Plaid Programming Language.
*
* Plaid Programming Language is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
*
* Plaid Programming Language is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/aeminium/runtime/Profiler.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import aeminium.runtime.profiler.DataCollection;

public interface Profiler {

public void shutdown();
public LinkedList<DataCollection> getDataList();
}
Loading