Programming

NVIDIA เปิดตัวภาษา CUDA 6 สำหรับการเขียนโปรแกรมบน GPU ของตัวเองโดยมีความสามารถสำคัญคือ Unified Memory หรือการมองหน่วยความจำของซีพียูและจีพียูเป็นผืนเดียวกัน ทำให้สามารถพัฒนาซอฟต์แวร์ได้ง่ายขึ้น

การมองหน่วยความจำของซีพียูและจีพียูเป็นผืนเดียวกันเป็นความสามารถสำคัญของสถาปัตยกรรม HSA ในกรณีของเอเอ็มดี ชิปรุ่นหลังๆ นั้นมีจีพียูมาในตัวและใช้หน่วยความจำร่วมกับซีพียูอยู่แล้ว การมองหน่วยความจำเป็นผืนเดียวกันจึงค่อนข้างสมเหตุสมผล แต่สำหรับ NVIDIA ที่ยังขายชิปกราฟิกเป็นการ์ดอยู่นั้น การจัดการหน่วยความจำอัตโนมัติจะมีประสิทธิภาพเพียงใดยังต้องรอดูประสิทธิภาพจริง เพราะหากจัดการได้ไม่ดีพอ ข้อมูลจะเสียเวลาเดินทางไปมา มากกว่าที่จะทำงานประมวลผลจริง

นอกจาก Unified Memory แล้ว CUDA 6 ยังเพิ่มไลบรารีใหม่ให้เร่งความเร็วการประมวลผล FFT และ BLAS โดยไลบรารีใหม่รองรับจีพียูได้ถึง 8 ตัว

ซอฟต์แวร์จริงจะเปิดให้ทดลองใช้งานต้นปี 2014

ที่มา - NVIDIA

Hiring! บริษัทที่น่าสนใจ

Carmen Software company cover
Carmen Software
Hotel Financial Solutions
Next Innovation (Thailand) Co., Ltd. company cover
Next Innovation (Thailand) Co., Ltd.
We are web design with consulting & engineering services driven the future stronger and flexibility.
KKP Dime company cover
KKP Dime
KKP Dime บริษัทในเครือเกียรตินาคินภัทร
Kiatnakin Phatra Financial Group company cover
Kiatnakin Phatra Financial Group
Financial Service
Fastwork Technologies company cover
Fastwork Technologies
Fastwork.co เว็บไซต์ที่รวบรวม ฟรีแลนซ์ มืออาชีพจากหลากหลายสายงานไว้ในที่เดียวกัน
Thoughtworks Thailand company cover
Thoughtworks Thailand
Thoughtworks เป็นบริษัทที่ปรึกษาด้านเทคโนโยลีระดับโลกที่คว้า Great Place to Work 3 ปีซ้อน
Iron Software company cover
Iron Software
Iron Software is an American company providing a suite of .NET libraries by engineer for engineers.
CLEVERSE company cover
CLEVERSE
Cleverse is a Venture Builder. Our team builds several tech companies.
Nipa Cloud company cover
Nipa Cloud
#1 OpenStack cloud provider in Thailand with our own data center and software platform.
Bangmod Enterprise company cover
Bangmod Enterprise
The leader in Cloud Server and Hosting in Thailand.
CIMB THAI Bank company cover
CIMB THAI Bank
MOVING FORWARD WITH YOU - CIMB is the leading ASEAN Bank
Bangkok Bank company cover
Bangkok Bank
Bangkok Bank is one of Southeast Asia's largest regional banks, a market leader in business banking
MuvMi (Urban Mobility Tech Co.,Ltd.) company cover
MuvMi (Urban Mobility Tech Co.,Ltd.)
Shape the future of urban mobility towards affordable, clean, and safe solutions
T.N. Digital Solution Co., Ltd. company cover
T.N. Digital Solution Co., Ltd.
TNDS has been involving in every first move of banking’s major digital transformation.
KBTG - KASIKORN Business-Technology Group company cover
KBTG - KASIKORN Business-Technology Group
KBTG - "The Technology Company for Digital Business Innovation"
Siam Commercial Bank Public Company Limited company cover
Siam Commercial Bank Public Company Limited
"Let's start a brighter career future together"
Icon Framework co.,Ltd. company cover
Icon Framework co.,Ltd.
Global Standard Platform for Real Estate แพลตฟอร์มสำหรับธุรกิจอสังหาริมทรัพย์ครบวงจร มาตรฐานระดับโลก
REFINITIV company cover
REFINITIV
The Financial and Risk business of Thomson Reuters is now Refinitiv
H LAB company cover
H LAB
Re-engineering healthcare systems through intelligent platforms and system design.
The Gang Technology Co., Ltd. company cover
The Gang Technology Co., Ltd.
We're a Digital Agency that helps our customers transform their business into digital with ease.
LTMH company cover
LTMH
LTMH มุ่งเน้นการพัฒนาผลิตภัณฑ์ที่สามารถช่วยพันธมิตรของเราให้บรรลุเป้าหมาย
Seven Peaks company cover
Seven Peaks
We Drive Digital Transformation
Wisesight (Thailand) Co., Ltd. company cover
Wisesight (Thailand) Co., Ltd.
The Best Choice For Handling Social Media · High Expertise in Social Data · Most Advanced and Secure
MOLOG Tech company cover
MOLOG Tech
We are Modern Logistic Platform, Specialize in WMS, OMS and TMS.
Data Wow Co.,Ltd company cover
Data Wow Co.,Ltd
We enable our clients to realize increased productivity by solving their most complex issues by Data
LINE Company Thailand company cover
LINE Company Thailand
LINE, the world's hottest mobile messaging platform, offers free text and voice messaging + Call
LINE MAN Wongnai company cover
LINE MAN Wongnai
Join our journey to becoming No.1 food platform in Thailand

ถ้าไม่ใช่ onboard,APU แล้วการแชร์แรมร่วมกันมันจะมีประสิทธิภาพได้อย่างไร เพราะความเร็วของแรมระบบ กับแรมบนGPU ปกติก็แตกต่างกันมากอยู่แล้ว ยกเว้นGPUรุ่นล่างๆที่ใช้แรมความเร็วต่ำ หรือแค่64bit

ถ้าการจัดการแรมฉลาดพอ ในงานหลายๆ อย่างก็เพิ่มประสิทธิภาพได้ครับ

อย่างทุกวันนี้ที่เราทำงานกันก็ย้ายข้อมูลไปมา แต่งานมันย้ายข้อมูลน้อยพอ ประสิทธิภาพก็ดีขึ้น

กรณี​ของ​ CUDA เค้าเน้นใช้ในงานคำนวณ​ แล้วมักจะแบ่งงานคำนวณ​ไปทั้ง CPU ร่วมกับ GPU แล้ว​บางครั้ง​ต้องดึงข้อมูล​ไปมาระหว่าง​กัน​อยู่​บ่อยๆ(ทั้ง​อ่านทั้งเขียน) จากเดิม​ต้อง​ ​copy ข้อมูลมาใส่แรมของตัวเอง​ก่อนแล้วคำนวณ​ให้เสร็จ​แล้ว​ค่อย​ส่งกลับ​ การแชร์แรมร่วมกันให้อ่านและเขียน​ได้​โดยตรงจะเร็ว​กว่า​เดิม​มาก​

ถึงตอนนั้นเราก็จะเรียกว่า GPU ว่า CPU ครับ

ไม่มีอะไรมากำหนดว่า CPU ต้องเป็นแกนใหญ่ซับซ้อนประสิทธิภาพสูง ซีพียูรุ่นใหม่ๆ ก็ซอยคอร์เล็กลงกัน ระบบในงานวิจัยมีซีพียูที่ลักษณะเป็นแกนเล็กๆ ทำงานคล้าย GPU กันบ้าง

มันน่าจะเก่งกันคนละอย่างนะ CPU อาจจะเก่งที่สลับงานได้เร็ว เพราะเป็นคนที่ต้องสลับงานทำ multi tasking เสมอ ๆ แต่ GPU อาจจะคำนวณได้เร็วแต่สลับงานได้ช้า อ้ะป่าว ?

งานพวกที่เป็น Single Task ก็ยังต้องพึ่งพา CPU อยู่ครับ ถ้าพวก Multitask ที่มีเยอะมากๆ การใช้การ์ดจอก็เป็นอีกตัวเลือกหนึ่งครับ

แปลกเหมือนกันทำไมไม่ใช้การ์ดจอ GPU คำนวณแทน CPU ให้หมดไปเลย ทั้งที่ GPU สมัยนี้แรงกว่า CPU หลายตัวมากแล้ว

หลายโปรแกรมรันกับ CPU แล้วโครตช้า แต่พอรันด้วย GPU วิ่งเร็วฉิวเลย (อย่างพวก Guiminer หนึ่งใน Bitcoin) ซึ่งความเร็วต่างกัน 10 เท่าเลยนะครับ -"-

1 เขียนให้ทำงานบน​ GPU ด้วยมันยากกว่าเขียนบน​ cpu เดี่ยว​ๆ​ ครับ

2 ไมม่ใช่งานทุกประเภทที่เหมาะกับ​ GPU ครับ

เท่าที่อ่านดูเหมือนว่า จะเป็นลักษณะทำ virtual address space ผ่าน library
ซึ่งแน่นอนว่า มันจะทำให้การพัฒนาสะดวกขึ้น เพราะหน้าที่ในการ copy ข้อมูลข้ามไปมาจะถูกทำโดยอัตโนมัติ
ผ่าน library ซึ่งเอาเข้าจริงถึงเวลา ก็ optimize ได้ไม่เท่าแบบ manual เพราะ application ควบคุมได้ละเอียดกว่า

Solution นี้ก็ยังไม่ไปที่สุดเหมือน HSA