[{"data":1,"prerenderedAt":182},["ShallowReactive",2],{"project-14631674":3},{"id":4,"name":5,"line":6,"line_source":7,"title":8,"url":9,"domain":10,"maker":11,"posted_at":12,"year":13,"points":14,"comments":15,"rank_in_year":16,"shown_in_year":17,"top":18,"tier":19,"category":20,"subcategory":21,"format":22,"keywords":23,"reception":28,"sentiment":29,"stance_mix":30,"scored_comments":33,"aspects":34,"strip":37,"post_text":29,"what":40,"said":58,"maker_in_thread":109,"shape":115,"grid":119,"attempts":144,"same_week":145,"maker_shows":174,"maker_hidden":175,"reader_version":176,"card":177},"14631674","vulkan_minimal_compute","A Minimal Code Example of Using Vulkan for Computations on the GPU","title","Show HN: A Minimal Code Example of Using Vulkan for Computations on the GPU","https:\u002F\u002Fgithub.com\u002FErkaman\u002Fvulkan_minimal_compute","github.com","erkaman",1498418660,2017,68,11,648,2242,29,"notable","learning_science","code example for learning vulkan compute","library",[24,25,26,27],"vulkan","gpu compute","gpgpu","opencl","quiet",null,{"positive":31,"neutral":31,"mixed":32,"critical":32},1,0,2,{"docs":35,"idea":36},{"positive":31,"critical":32},{"positive":32,"critical":32},[32,32,32,32,32,32,32,38,32,39,32],5,3,{"problem":41,"audience":48,"pricing":29,"motivation":29,"time_to_build":29,"stack":52,"openness":57,"stage":57,"team_size":57},{"value":42,"source":43,"evidence":44},"Learning how to use Vulkan for compute operations on the GPU","maker",[45],{"id":46,"by":11,"text":47},"14631676","OP here. This is a small code example of how to use Vulkan for compute operations. Only ~400LOC. It's pretty short, and has plenty of comments, so it should be useful for people…",{"value":49,"source":43,"evidence":50},"People learning Vulkan",[51],{"id":46,"by":11,"text":47},[53],{"value":54,"source":43,"evidence":55},"Vulkan",[56],{"id":46,"by":11,"text":47},"unknown",{"praise":59,"objections":64,"requests":65,"questions":81,"alternatives":96},[60],{"value":61,"source":43,"evidence":62},"Useful for people learning Vulkan thanks to short, well-commented code",[63],{"id":46,"by":11,"text":47},[],[66,74],{"value":67,"source":68,"evidence":69},"Add a higher-level wrapper that hides common compute setup details","commenter",[70],{"id":71,"by":72,"text":73},"14633301","ilaksh","Has someone created a wrapper or higher-level API that takes care of some of the details for common use-cases? For example, say I don't need to optimize my command submittal, or…",{"value":75,"source":68,"evidence":76},"Bring Vulkan into TensorFlow-style projects",[77],{"id":78,"by":79,"text":80},"14635340","sandGorgon","It would be great to contribute some of this to https:\u002F\u002Fgithub.com\u002Fhughperkins\u002Ftf-coriander (which is a port of tensorflow to opencl). Mainline TF is not moving to opencl because…",[82,89],{"value":83,"source":68,"evidence":84},"Is Vulkan expected to replace OpenCL for GPGPU?",[85],{"id":86,"by":87,"text":88},"14632282","sorenjan","I haven't used GPGPU in a while. Is Vulkan expected to take over from OpenCL?",{"value":90,"source":68,"evidence":91},"How will OpenCL and Vulkan APIs be merged?",[92],{"id":93,"by":94,"text":95},"14635433","ktta","Can you explain this a bit more clearly? As I understood it, OpenCL's compute API will look like Vulkan's functions and nothing from Vulkan side will change (interpreting this…",[97,105],{"value":98,"source":68,"evidence":99},"OpenCL",[100,104],{"id":101,"by":102,"text":103},"14633639","mangix","currently OpenCL supports more devices.",{"id":86,"by":87,"text":88},{"value":106,"source":68,"evidence":107},"tf-coriander",[108],{"id":78,"by":79,"text":80},{"comments":33,"answered":32,"key":110},[111,112],{"id":46,"text":47},{"id":113,"text":114},"14633936","Ah, thanks for the tip :-)",{"commenters":116,"max_depth":117,"maker_replies":33,"first_comment_mins":32,"lifespan_hours":118},9,4,15,[120,122,125,127,130,131,133,135,138,140,142],[86,32,32,121,87,32],"commenter\u002Fneutral\u002Fidea",[123,32,32,121,124,32],"14632980","slavik81",[101,32,32,126,102,32],"commenter\u002Fneutral\u002Fnone",[128,32,32,121,129,32],"14634816","nicwilson",[93,32,32,121,94,32],[132,32,32,121,129,32],"14635550",[46,31,32,134,11,31],"project\u002Fpositive\u002Fdocs",[136,31,38,134,137,32],"14632586","TheAceOfHearts",[113,31,32,139,11,31],"maker\u002Fpositive\u002Fnone",[71,33,39,141,72,32],"project\u002Fneutral\u002Fidea",[78,39,32,143,79,32],"other\u002Fneutral\u002Fnone",[],[146,151,156,161,165,169],{"id":147,"name":148,"points":149,"category":150},"14644539","GreenPiThumb",537,"hardware",{"id":152,"name":153,"points":154,"category":155},"14625795","Insect",354,"dev_tools",{"id":157,"name":158,"points":159,"category":160},"14652217","Hackerhunt",335,"productivity",{"id":162,"name":163,"points":164,"category":155},"14612440","Sourcetrail",328,{"id":166,"name":167,"points":168,"category":155},"14614304","pack3d",260,{"id":170,"name":171,"points":172,"category":173},"14636699","HyperLogLog",194,"languages",7,false,"v2",{"id":178,"name":5,"line":6,"ai":175,"cat":20,"year":13,"points":14,"comments":15,"rec":28,"s":29,"top":18,"kw":179,"maker":11,"domain":10,"tier":19,"attempts":32,"strip":180,"url":9,"mix":181,"praise":61,"objection":-1,"sub":21},14631674,[24,25,26,27],"00000005030",[31,31,32,32],1793990960651]