-
Notifications
You must be signed in to change notification settings - Fork 52
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
Print function fails on GPU #115
Comments
Hi @touste, I don't think the printing functionality will work on GPUs. Can you debug on the CPU? |
Hi @fredrikbk, thanks for your reply. Yes I usually debug on the CPU however sometimes the program behaves a bit differently on the GPU. Not havint printing capabilities on the GPU is not a major issue, I was just wondering if there was an easy way to fix it. |
Yes, that makes sense, but unfortunately I don't think NVidia GPUs support printing (unless it's been added without me noticing). The program behaving different is worrying though. Perhaps it's just the non-associativity of floating point numbers. I think once we get a shared-memory parallel implementation we'll be able to diagnose some of that using prints. |
Aside, out of curiosity, what do you use Simit for? You might be interested in knowing that we have a new student here that will be picking it up, so it should start moving again. |
Hi Fredrik, Regarding the different behaviour, here are 3 cases where I noticed a difference between CPU and GPU:
Anyway, I'm glad Simit is picking up steam again. I'm using it to prototype a fast finite element code for real-time simulations of surgical procedures. In my case the GPU implementation comes handy, and SIMIT is a very efficient and elegant way to get high performance code without facing GPU programming.
Thanks! |
Hi everyone,
I've got an issue with the print or println function when running a simit program on the GPU, which makes debugging rather unconvenient.
In the simit linker log file, I get this message:
error : Undefined reference to 'printf' in '<compiled-ptx>'
Could you point me to where I could define this function?
Thanks
The text was updated successfully, but these errors were encountered: