All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cuda.fill.FillTwoIntegerArraysKernel.cu Maven / Gradle / Ivy

Go to download

Komputation is a neural network framework for the JVM written in the Kotlin programming language.

There is a newer version: 0.12.5
Show newest version
__global__ void fillTwoIntegerArraysKernel(
    int numberRows,
    int numberEntries,
    int* firstArray,
    int firstConstant,
    int* secondArray,
    int secondConstant) {

    int index = blockIdx.x * numberEntries + blockIdx.y * numberRows + threadIdx.x;

    firstArray[index] = firstConstant;
    secondArray[index] = secondConstant;

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy