-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Randomness #550
Comments
Hi @MaardinK522 . Thanks for your interest. This is a topic I personally would like to explore but unfortunately, no immediate plans. So, to answer your question, TornadoVM does not have any utility for random number generators, but we have examples that can help, for instance the Montecarlo-based for pseudo random number genenerator: https://github.com/beehive-lab/TornadoVM/blob/master/tornado-examples/src/main/java/uk/ac/manchester/tornado/examples/compute/MonteCarlo.java#L41-L64 Also, as feedback for us (TornadoVM team), is there anything specific you would like to see? |
Yes. |
This means that the code gen failed. Which code are you running? Is it possible to share a test-case that breaks? You can use the |
Here is the code I am trying to execute. |
I suspect the error in the codegen is related to the if condition within the public class MatrixOperationSolver{
public static void solveAddition(Matrix2DDouble matrix1, Matrix2DDouble matrix2, Matrix2DDouble result) {
for (@Parallel int i = 0; i < result.getNumRows(); i++) {
for (@Parallel int j = 0; j < result.getNumColumns(); j++) {
result.set(i, j, matrix1.get(i, j) + matrix2.get(i, j));
}
}
}
} |
We will look into this bug. |
@mairooni is taking a look to this issue |
Hi @MaardinK522, could you also provide the code of the function |
Hello, Juan Fumero.
I am really excited to complete my custom implementation of a JNeuralNetwork from scratch on my NVidia 1050Ti GPU. But, In the implementation I needed an object of random number generator class. Is there any way I can implement randomness into my code?
Or Should I just go sequentially on my GPU?
I hope I am able to explain you my request.
And again Thank you very much for releasing TornadoVM build scripts.
The text was updated successfully, but these errors were encountered: