Merge pull request #2 from nasrlol/feature/single-threaded-cpu-load-generation

Feature/single threaded cpu load generation boilerplate
This commit is contained in:
Abdellah El Morabit 2025-11-16 18:07:37 +01:00 committed by GitHub
commit 6114a98d54
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
11 changed files with 87 additions and 14 deletions

10
.gitignore vendored
View File

@ -1,21 +1,13 @@
# Scala + sbt build artifacts
target/ target/
project/target/ project/target/
project/project/ project/project/
.bloop/
# Metals + BSP cache
.metals/ .metals/
.bsp/ .bsp/
# Java / JVM artifacts
*.class *.class
*.log *.log
hs_err_pid* hs_err_pid*
# IntelliJ
.idea/ .idea/
*.iml *.iml
# VSCode
.vscode/ .vscode/

View File

@ -3,3 +3,4 @@ version := "1.0"
name := "torque" name := "torque"
organization := "com.nsrddyn" organization := "com.nsrddyn"
libraryDependencies += "dev.zio" %% "zio" % "2.1.22"

View File

@ -0,0 +1,10 @@
package com.nsrddyn
object Torque {
def main(args: Array[String]): Unit = {
println("--- TORQUE STRESS TESTING UTILITY ---")
}
}

View File

@ -0,0 +1,6 @@
package com.nsrddyn
class ALU {
}

View File

@ -0,0 +1,13 @@
package com.nsrddyn
import scala.util.hashing
class Hash {
def hashString(): Unit = {
println("Hello from hash function")
}
}

View File

@ -0,0 +1,5 @@
package com.nsrddyn
class Prime {
}

View File

@ -0,0 +1,12 @@
package com.nsrddyn
/*
* cpu object, only one instance of an object needed
*/
object Cpu {
val name = ""
}

View File

@ -0,0 +1,28 @@
package com.nsrddyn
class CholeskyDecomposition {
/*
* Floating point operation to stress the cpu
* Calculate the number of KFLOPS / FLOPS
* implementation of the Cholesky decomposition
* More information on the Cholesky decomposition at:
* https://en.wikipedia.org/wiki/Cholesky_decomposition
*
* Linpack uses the cholesky decomposition
* https://www.netlib.org/linpack/
*
*
*/
def choleskyDecomposition(n: Int): Unit = {
for (w <- 0 to n) {
}
}
}

View File

@ -0,0 +1,6 @@
package com.nsrddyn
class FPU {
}

View File

@ -0,0 +1,5 @@
package com.nsrddyn
class Matrix {
}

View File

@ -1,5 +0,0 @@
package com.nsrddyn
def main(args: Array[String]) : Unit = {
println("Hello World!")
}