Editing User:Rishabhsuthar32/GSoC20/Report
From BRL-CAD
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 57: | Line 57: | ||
* '''Memory Allocation''' : One of the major challenges I faced was finding the OpenCL counterpart of bu_malloc which works fine while passing the variables from .c to .cl file. While I tried with malloc as is used normally in C programs, it apparently didn't work. The renderings were simply not occurring in the OpenCL version. Hence, the HYP and SUPERELL primitives, which didn't use the bu_malloc command, rendered easily while others didn't. The patches submitted above have no compilation or computation error. If the memory allocation thing works, they'd render just as fine. | * '''Memory Allocation''' : One of the major challenges I faced was finding the OpenCL counterpart of bu_malloc which works fine while passing the variables from .c to .cl file. While I tried with malloc as is used normally in C programs, it apparently didn't work. The renderings were simply not occurring in the OpenCL version. Hence, the HYP and SUPERELL primitives, which didn't use the bu_malloc command, rendered easily while others didn't. The patches submitted above have no compilation or computation error. If the memory allocation thing works, they'd render just as fine. | ||
− | * '''Using | + | * '''Using Print statement''': Another issue where I couldn't find light at the end of the tunnel was using print statement in OpenCL files. It'd seem that simply using printf would work, but it wouldn't go inside the kernel. The print statement would also be useful for debugging the memory allocation issue, as to where and why it is failing. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== References == | == References == | ||
* '''Project Plan''': https://brlcad.org/wiki/User:Rishabhsuthar32/GSoC20/Project | * '''Project Plan''': https://brlcad.org/wiki/User:Rishabhsuthar32/GSoC20/Project | ||
* '''Development Logs''': https://brlcad.org/wiki/User:Rishabhsuthar32/GSoC20/Log | * '''Development Logs''': https://brlcad.org/wiki/User:Rishabhsuthar32/GSoC20/Log |