Rewrite samples using new API (#3021)

This commit is contained in:
LepilkinaElena
2019-05-28 11:12:17 +03:00
committed by Ilya Matveev
parent c1a4272e7a
commit 16a8fdcf4e
36 changed files with 296 additions and 397 deletions
+1 -1
View File
@@ -38,6 +38,6 @@ computation results. Afterwards, worker execution termination is requested with
To build use `../gradlew assemble`.
To run use `../gradlew runProgram` or execute the program directly:
To run use `../gradlew runReleaseExecutableWorkers` or execute the program directly:
./build/bin/workers/main/release/executable/workers.kexe
+6 -7
View File
@@ -6,12 +6,11 @@ plugins {
def hostPreset = MPPTools.defaultHostPreset(project)
kotlin {
targets {
fromPreset(hostPreset, 'workers') {
compilations.main.outputKinds 'EXECUTABLE'
compilations.main.entryPoint 'sample.workers.main'
targetFromPreset(hostPreset, 'workers') {
binaries {
executable() {
entryPoint = 'sample.workers.main'
}
}
}
}
MPPTools.createRunTask(project, 'runProgram', kotlin.targets.workers)
}