[Parallel Programming][C++AMP] Survey summary

Basic requirement: VS2012 runtime DX11 runtime Use test program “VerifyAmpDevices” to verify it Advantage: Compatible with any GPU which could run DX11 with one EXE. NVIDIA GPUs AMD GPUs (and APUs) Intel GPUs (Ivy Bridge and later) ARM GPUs from various IHVs (soon, e.g. see Mali design) Could use Visual Studio IDE for GPU threading debugging Could use Visual Studio IDE for GPU profiling Base on C++ and STL Performance Comparison: (refer here) ** ** Video Clip: http://channel9.msdn.com/Events/AMD-Fusion-Developer-Summit/AMD-Fusion-Developer-Summit-11/KEYNOTE AFDS keynote which also introduce C++ AMP concept. Code Resource: Hello world with C++ AMP http://blogs.msdn.com/b/nativeconcurrency/archive/2012/04/30/hello-world-using-textures-in-c-amp.aspx All C++ AMP samples: http://blogs.msdn.com/b/nativeconcurrency/archive/2012/01/30/c-amp-sample-projects-for-download.aspx Very simple code sample slide: http://ecn.channel9.msdn.com/content/DanielMoth_CppAMP_Intro.pdf Detail analysis article http://kheresy.wordpress.com/2011/06/16/c-accelerated-massive-parallelism/ Limitation on C++ AMP http://blogs.msdn.com/b/nativeconcurrency/archive/2012/02/07/double-precision-support-in-c-amp.aspx WDDM 1.1, there will be double precision problem, only resolve on WDDM 1.2 (Win8)
繼續閱讀

[OpenCL] Some survey summary about OpenCL

Related code survey found: Debugging in Intel is easy refer Using the Intel® OpenCL SDK Debugger Add file path when you build cl program Note: Must using original path not copy path. EX: If you copy your CL file in post build process, need add original path not debugging CL code path. Note: Path need full path Enable Intel OpenCL SDK debugging in toolIntel SDK Note: Work item set 0,0,0 as default is enough. OpenCL kernel need warm up Run any other kernel code first (even not the same application), it will speed up your major CL kernel code AMD’s magic number is to run “twice” on dump kernel Testing result: (SW/CPU 160ms) Intel: 1st time setup 700ms, effect 160 AMD: 1st time setup 6000ms effect 16ms 2nd time setup 160ms effect 16ms  (it might goes to 0ms some time) It could be reduce time to pre-load *.cl file but no...
繼續閱讀

[MH4][MonsterHunter4]旅團操蟲棍畢業考心得

今年九月發售在3DS上的MH4~一發售之後~就佔據了我的3DS 發售的當天還因為相當想玩而買了下載版 18XX含稅  由於這次有支援網際網路對戰的功能,也就是不用拿著主機去外面找人連線 好處是~可以隨時隨地都找的到人來連線遊戲(而且~台日版跟原版可以共連)  壞處就是~其實單人的部分難度有一點變高了 主要是因為狂龍化的關係~每一隻龍似乎都開了外掛一樣 回過頭來~在此還是記錄一下我單人旅團畢業考的心得 其實主要是因為旅團的任務一直卡住  卡在炎王龍的火焰爆爆樂 ~ 每次爆完就貓車 好不容易防禦力撐到了五百~ 相關的武器也都升頂才過關 這一次畢業考不過也才考兩次~ 第一次用的是裝備是: 斬味+1 + 回性3 + 回距 不過用的由於是不是很熟的太刀~結果打到天迴 還是打到時間快結束前被三貓  後來乖乖的聽著網路上的文章改成蟲棍 裝備:  蒼火混黑狼鳥  配出: 高耳 + 見切 +  高磨 + 精靈守護 (主要) 結果貓飯沒注意到的吃到 “防禦大 + 不眠術” 裝備全部都帶回家玉跟秘藥的原料去混 由於不小心吃到不眠術~結果整場都不能睡(是整場~我以為貓車後會結除~結果沒有 orz) 一開始雷狼龍跟金獅王~其實很好打~   用蟲棍就不斷地跳起來扁雷狼龍 唯一要小心的就是金獅王從後面用嘴炮 騎乘個三四次~雷狼龍就掛了~ 金獅王也就是一塊小蛋糕   不過由於白馬貓貓夯(不眠術)的關係~ 我也浪費了許多的回復劑   orz 打到天迴就是硬仗 第一貓其實有點故意~想要看看不眠術會不會消除~結果不會 後來打著打著~不小心二貓了~ 於是我開始緊張了~手也開始冒汗~ 回到場上~先放個蟲~準備開打  ~準備開打                   ~準備開打                                      ~準備開打                                                          結果重補了尾刀~ 媽~~ 我過關了~   雖然遊戲應該改成魔物獵蟲… orz  
繼續閱讀

[Three20][Nimbus] Porting Three20 to Nimbus for Facebook Photo Album

This article is a record to summarized my project to migration from Three20 to Nimbus. Here is specific step by step to help you porting (migrate) your three20  Original project is a Facebook photo album which implement base on http://www.raywenderlich.com/1430/three20-tutorial-for-ios-how-to-use-the-three20-photo-viewer Add Nimbus in your project Sync code git clone https://github.com/jverkoey/nimbus.git Goes to nimbus path git submodule init git submodule update Include nimbus code in project Core Photos Paging Scroll View Models Overview Include Thirdparty in your code JSONKit remember to add “-fno-objc-arc” on Targets -> Build Phase -> Compiling Phase to disable ARC compiling AFNetworking Add framework libz.dylib MobileCoreServices.framework SystemConfiguration.framework CFNetwork.framework Add those three include in your pch     #import “NimbusCore.h”     #import “NimbusPhotos.h”     #import “NimbusModels.h” Remove original Three20 project Remove all Three20 xproj in your framework. Replace using to replace TTPhotoViewController to FacebookPhotoAlbumViewController Remove photo.h Photo.m Remove PhotoSet.h PhotoSet.m Remove PhotoViewController.h PhotoViewController.m Drag NimbusPhotos.bundle from src/photos/resources into your project. Add follow file into...
繼續閱讀

[iOS][XCODE] 重灌Mac Air所帶來xcode相關重新設定

SDK需要重新安裝與包裝,這次打算放到dropbox可能可以方便下次有富源需求(希望不要) iOS Development Certificate的問題 當初我有保留以下檔案 AppleWWDRCA.cer CertificateSigningRequest.certSigningRequest Evan_Lin_iPhone4.mobileprovision ios_development.cer 不過還是沒辦法,因為private key 不見了,所以還是得重新申請,參考以下方法  Connect to the apple developer member center then the iOS provisional portal. Revoke my certificate. Create a new certificate by providing a new pair of private and public key. Remove all the previous provisioning profiles and create new ones. Download the new provisioning profiles and install them in XCode by just dragging them to the XCode icon in the dock. refer  http://stackoverflow.com/questions/6769345/xcode-4-valid-signing-identity-not-found-error-on-provisioning-profiles-on-a http://adalin05.pixnet.net/blog/post/26454479-iphone%E9%96%8B%E7%99%BC%E7%AD%86%E8%A8%98%EF%BC%9Aerror-message 遇到”A valid provisioning profile matching the application’s Identifier could not be found” 雖然certificate都安裝好了~還是有可能遇到問題 這時候解法是 xcode -> windows -> Orgnizer 然後 editor->refresh from developer portal  refer: http://forum.geego.com/forums/modules/newbb/viewtopic.php?topic_id=623&forum=17 之後要到xcode設定把 target 從iOS device 改道 iPhone refer:  http://stackoverflow.com/questions/16155613/a-valid-provisioning-profile-matching-the-applications-identifier-could-not-be 重開xcode 或是重新 clean -> build 就可以
繼續閱讀

[MacAir] 開不了機 並且遇到 硬碟無法維修

最近也不知道是不是有3C瘟疫 每個周邊的3C商品都開始壞掉 從我的PS3玩到壞掉之後~接下來出現問題竟然是我去年買的Mac Air 2012年中版 (搭配IVB的版本) 依照以下的方式來準備排除方法 排除方法 http://ios.niufangjian.cn/post/3fadb_12debe 最後發現都不行,於是我不得不重新format —> 殘念 重灌好之後,由於有dropbox,evernote還有最重要的Chrome的幫助下,其實重新復原很快的 接下來會希望把所有跟xcode設定還有SDK有關全部放入dropbox之後也方便(也有version control) 參考文章: **排除方法 http://ios.niufangjian.cn/post/3fadb_12debe  ** 如何延長SSD 壽命 http://blog.mowd.tw/index.php?pl=1020#p_tb  
繼續閱讀