Compare commits

..

7 Commits

Author SHA1 Message Date
6114a98d54
Merge pull request #2 from nasrlol/feature/single-threaded-cpu-load-generation
Feature/single threaded cpu load generation boilerplate
2025-11-16 18:07:37 +01:00
3b35f42cc7
Merge branch 'main' into feature/single-threaded-cpu-load-generation 2025-11-16 18:07:20 +01:00
5a126081e0 chore: updated gitignore, removed accidental file 2025-11-16 18:05:08 +01:00
ebe167e951 Remove build artifacts from repository 2025-11-16 18:02:45 +01:00
df8cf59890 chose: refactor and cleanup of main files 2025-11-15 23:18:16 +01:00
380663c7e9 feature: boilerplate FPU
boilerplate classes for stressing the FPU, will be extended in the
future, still discovering, what does what and what stresses what
2025-11-15 23:17:36 +01:00
2adbea2fc2 feature: ALU boilerplate
boilerplate classes for stressing the ALU
2025-11-15 23:16:41 +01:00
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!")
}