Wednesday, March 18, 2009

Day 355... Spring Time!

I have noticed these pretty flowers for a week. But just took the photos of them. :)

I took them in the afternoon. They sky was so clear that they looked very (too) bright.










Wednesday, March 11, 2009

Day 348... Postponed!

The CS qualifying exam has been postponed. How come? I would like to get it done as soon as possible so that I can do other things without worrying about it. T_T

By the way, it has been raining all day today. The weather is cooler of course. But I do not like to get wet.


Sunday, March 08, 2009

Day 345... It's Spring!

I got up late this morning. Around 8 a.m. It was the beginning of the daylight savings time. That means the time between here and Bangkok are 12 hours different. Though I try to catch the sun these days. Hear the birds sing in the morning. How sweet...

I just rambled. It was the effect of studying hard for the upcoming exam. T_T

The weather is hot though.


Wednesday, March 04, 2009

CUDA Timers vs Events

I just found the answer of the question why the times I got from CUDA timer are odd.

http://forums.nvidia.com/lofiversion/index.php?t72550.html


If you want to time the kernel accurately, use CUDA events. For example, look at the simpleStreams sample in the SDK to see how to use events for timing. Event API is described in the Programming Guide. Note that events are recorded on the GPU, so you'll be timing only GPU execution. The nice benefit is that clock resolution is the period of the GPU shader clock - you should get reliable timings even from a single kernel launch.

If you want to time operations including CPU involvement (like driver overhead), you should use your favorite CPU timer. Just make sure you understand the timer resolution. Also, as seibert pointed out, make sure to call cudaThreadSynchronize() before starting and then again before stopping the timer.

Do not ever use blocking CUDA calls (like memcopies) to achieve synchronicity - that will change your timings terribly.

Paulius


I should not have used the timer but should have used event handler... T_T


Tuesday, March 03, 2009

Day 340... Final!

Today is the last day of this quarter and I had a final. It was in dr. Choi class. Forget that horrible test... T_T

วันนี้วันสุดท้ายของควอร์เตอร์นี้ ไอ้เอ๋มีสอบวิชาของ ดร. ชอย ช่างมันเต๊อะ... T_T

I used the microwave rice cooker again this morning too. I added 1 cup of rice and 2 cups of water, let the rice soak up in the water for couple of hours and sticked it in the microwave for 11 minutes. I worked even it smelled a little odd. Do not know whether it was because of the rice or the cooker. Anyway just left it for a while and that smell would be gone.

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

Saturday, February 28, 2009

Day 337... Coffee House @ Wesley

I was in the Wesley Coffee House 09 last night. It was a kind of party or something. There was a magic show. It was fun. But the most thing that I like was beignets... yummy :)

Alright... Get back to the paper and the tests. T_T

Tuesday, February 24, 2009

Day 333... Something New

เมื่อวานเปิดตู้จดหมาย เจอกุญแจ... พออ่านแท็กที่ติดอยู่กับกุญแจ มันบอกให้เปิดตู้ข้างล่าง ซึ่งใหญ่กว่า เป็นตู้พัสดุ มันคือเครื่องเป่าผมกับหม้อหุงข้าวในไมโครเวฟที่สั่งซื้อจากอมาซอนนั่นเอง

When I opened the mailbox yesterday morning, I found a key to open another big one underneath. There was a package from amazon.com which was what I had purchased, a hair dryer and a microwave rice cooker/steamer.

เครื่องเป่าผมเล็กดี ชอบ...
I like the hair dryer. It is small.




ลองใช้หม้อหุงข้าวแล้ว เมื่อตอนกลางวัน ใส่ข้าวถ้วยนึง น้ำอีกถ้วยครึ่ง แล้วใส่ไมโครเวฟสิบนาที ออกมา หน้าตาอย่างในรูป

I just tried the rice cooker this afternoon. Added a cup of rice and 1.5 cups of water and put it into the microwave for 10 mins. When finished, it looked like this.





ข่าวแข็งไปหน่อย คราวหน้าจะลองเพิ่มน้ำเป็นสองถ้วยดู
The rice was a little bit too hard. I will try 2 cups of water next time.

By the way, the internet signal has been back today. Enjoy it now. :)


Monday, February 23, 2009

Day 332...No Internet at Home

These days, I have to come to use internet in my lab since I do not have internet at home. It is Mardi Gras break. The owner of the network signal that I am using (without telling him/her) has probably left for somewhere and turned it off. That is not a big deal anyway. I can come to the lab everyday during this break. :(

My status
- Still working on my paper.
- Still doing my take home exam.
- Still worrying about the incoming qualifying exam. :(


Wednesday, February 18, 2009

Day 327... Still Alive

The winter quarter is ending. I have a bunch of homework to turn in and also the term projects. I just finished all those projects and got the take-home exam which will be due next Tuesday. I also have a paper to finish by the end of this month. After the paper, I can start studying for the qualifying exam.

Lots of things to do.


Tuesday, February 10, 2009

Day 319... Hang out with Megan/Give Blood

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

I had breakfast with Megan this morning. She took me to Chicken fil-A which is on campus. The chicken biscuit was good. After we talked for a while, Megan took me to a pet shop in downtown. She said she often goes there to see puppies but usually buys nothing. Those puppies were so adorable! They were so hyper. There were also white mice and ferrets for sell. For the mice, if you buy 5 mice you can get the 6th one free... ha ha! They multiply very fast. I saw some babies which were pink in the cages as well. The ferrets were so cute. There were couple of ferrets in the shop. I do not know how to explain what they look like. So, got some pictures from the internet.

นี่ไง...
Here they are...


น่ารักเนอะ...
So cute, aren't they?...

Before lunch, I went to give blood at Tolliver Hall. It had been the second time since I was here. Got an XL T-shirt again. I should probably give them away somehow.

ก่อนกินข้าวก็ไปให้เลือด เป็นครั้งที่สองแล้วตั้งแต่มาอยู่ที่นี่ แล้วก็ได้เสื้อยืดขนาด XL มาอีกแล้ว สงสัยคงต้องให้คนอื่นไปบ้างแหละ


Saturday, February 07, 2009

Day 316...Girl's Night

Last night was Girl's Night that girls gathered at Wesley Foundation to hangout, eat, see movie, play wii and there was also tye-dye. I have nothing to say. Just have a look.

Oh... Girls, do not expect to see boys in this event. :)




Wednesday, February 04, 2009

Day 313...Hang out with Marcia

อย่างจั่วหัวเลย เมื่อตอนเย็นไปตะแล๊ะแต๊ดแต๋กับมาร์ซา (เจ้าตัวบอกว่าออกเสียงงี้อะ) ที่ร้านกาแฟ น่าจะชื่อเครสเซนต์ซิตี้นะ ถ้าจำไม่ผิด ไปซดลาเต้กัน กินกับอะไรบางอย่างที่เรียกว่าเบเนต์

As the title, I hung out with Marcia in a coffee shop (Crescent City Coffee, I guess) this evening. We had some latte and Beignets.





เหมือนปาท่องโก๋เลยอะ เหมือนมากๆ แค่มีน้ำตาลโรยหน้าเท่านั้นเอง มาร์ซาบอกว่ามันเป็นของนิวออร์ลีนซ์ ส่วนชื่อเบเนต์น่าจะเป็นภาษาฝรั่งเศส

It is similar to what we call Pa-Tong-Go in Thailand. Very very similar. Just put sugar powder on it. Marcia said it is popular in New Orleans. The name "Beignets" is probably French.

เห็นแล้วคิดถึงปาท่องโก๋อะ ปาท่องโก๋กับน้ำเต้าหู้ ง่ำๆ

Oh...I miss Pa-Tong-Go very much. Pa-Tong-Go with hot soy milk...yum yum.


Sunday, February 01, 2009

Day 310...Tongkatsu by Sunghee

เมื่อกลางวันซองฮี ทำทงคัตสึ(ไม่รู้ว่าหมูหรือไก่ชุบแป้งทอดนี่แหละ) ให้ชิม จริงๆ มันเป็นอาหารญี่ปุ่น แต่ซองฮีบอกว่าทำแบบเกาหลี ก็อร่อยดีนะ

Sunghee cooked me Tongkatsu for lunch. I have no idea if it was pork or chicken but it was tasty. She said it was actually Japanese food but she cooked in Korean style.

Saturday, January 31, 2009

Day 309...Concert

I went to the concert at Wesley Foundation last night. Here are some photos...for you who want to see my friends' and my pictures. :)




Thursday, January 29, 2009

Day 307...TV Shows

ช่วงนี้กำลังติดหนังอยู่สองเรื่อง ดูจาก Hulu มันคือ Legend of the Seeker กับ Crusoe จริงๆ ก็ยังไม่เคยอ่านหนังสือนะ แต่ชอบ Crusoe เพราะไอเดียบ๊องๆ ของมัน (ในวิดีโอเรียกอย่างนี้จริงๆ นะ)

There are two american series that I am following from Hulu, Legend of the Seeker and Crusoe. I have not even read the novel before, but I like Crusoe because of "mad idea" in this story. (It is really called mad idea as in the following videos.)



โคตรชอบบ้านต้นไม้เลย แล้วก็ยังมีที่คั้นน้ำผลไม้ ทำจากกะลามะพร้าว รางน้ำกับถังเก็บน้ำ ล้อข้ามช่องเขา พวกกับดักทั้งหลายแหล่ แต่สงสัยอย่าง ห้องน้ำอยู่ไหนหว่า

The treehouse is awesome and I also like the juicer made from coconut shells, the barrel and gutter, the hamster wheel to cross the chasm, those traps, and so on. But I am curious where the bath is.

Crusoe's Treehouse


His Gadgets


อยากอยู่บ้านแบบนี้มั่งมั้ย

Wanna live in this house?


Sunday, January 25, 2009

Concept of Streams in CUDA

According to the model in the previous post, I have a feeling in my gut that there might not be correct. There would be something else so I get to look into the concept of streams again.

Excerpt from page 41, section 4.5.1.5 of Programming Guide: Asynchronous Concurrent Execution.

Applications manage concurrency through streams. A stream is a sequence of operations that execute in order. Different streams, on the other hand, may execute their operations out of order with respect to one another or concurrently.

Any kernel launch, memory set, or memory copy function without a stream parameter or with a zero stream parameter begins only after all preceding operations are done, including operations that are part of streams, and no subsequent operation may begin until it is done.


Still cannot see what is wrong with it. T_T


Friday, January 23, 2009

Memory Copy Time Models

From today's meeting, Aig and James helped me to solve the problem that the completion time in simpleStreams is much higher than the expected time. And we also came up with some equations to model the completion time. There should be some diagram to explain but I have not drown it yet.

The equations to calculate the total time of memory copy are:
TS = n(t + l), for synchronous memory copy
TA = (n/s)t + ((n/s) + s - 1)l, for asynchronous memory copy.

n = number of data
s = number of streams
l = latency or overhead
t = copy time

Another idea that James raised in the meeting is about data scheduling, to keep the GPU occupied while the data are being copied from the CPU.

Thank Aig and James for your help. ;)

Thursday, January 22, 2009

Day 300...Wesley Foundation & Having a Car

เช้า (สาย) นี้ไปแอ่วที่เวสลี่ฟาวเดชันแต่หัววัน กีดี ได้คุยกับคนเยอะแยะ เด็กๆ (มันเด็กกว่าหนู) ที่นั่นน่ารักดี แล้วก็เลยได้ไปช่วยเขาตักข้าวโพดด้วย ก็ดีนะ ดีกว่าอยู่บ้านแล้วคิดงานไม่ออกแหละ

Today, I went to Wesley Foundation earlier than usual and that was a good opportunity to hang out and talk. People there were so nice. I also helped them to serve corns. That was fun, better than just stay home and be obsessed by the research...HAHA!

ได้คุยกับเจมส์เรื่องรถด้วย เจมส์บอกว่าถ้าจะมีรถคงต้องจ่ายซัก 400 เหรียญต่อเดือน เป็นพวกค่าเบี้ยประกัน ค่าน้ำมัน อะไรเทือกนั้น เพราะฉะนั้น ถ้ายังมีไม่ถึงเดือนละ 1500 เหรียญก็ช่างหัวมันก่อน ไม่มีรถก็ไม่เป็นไร (แต่เกรงใจเอกกับมนแฮะ) เมแกนมันยังขายรถไปขี่จักรยานแทนเลย อีกอย่าง ถ้ามีรถก็ต้องดูแล ไอ้เอ๋ทำไม่เป็นอะ

I also talked to James about how much I would have to spend on a car. He said it would cost me around $400 a month (for insurance, gas and such things). So forget it if I cannot earn $1500 per month. Having no car, just having no legs. Even my friend, Megan, just sold her car and get anywhere by her bike. It is not bad to have no car because if I have one, I will have to take care of it and I do not know how.

ยังไงก็แล้วแต่ ไว้ถ้ามีซักเดือนละ 1500 เมื่อไหร่ค่อยคิดอีกที

Anyway, think of it again when I earn 1500. :)


Various Size of Matrix Multiplication

I am trying to come up with a model, so have to try to do observe behavior of some other applications. It is now a turn of Matrix Multiplication (without streams). Both matrixes had the same dimensions and ran on 8800 GT.

BLOCK_SIZE 1 (Matrix size of 5 x 5 elements)
copy time of A = 0.027000 ms
copy time of B = 0.023000 ms
kernel time = 0.037000 ms
time of result copy = 0.026000 ms

BLOCK_SIZE 2 (Matrix size of 10 x 10 elements)
copy time of A = 0.028000 ms
copy time of B = 0.023000 ms
kernel time = 0.059000 ms
time of result copy = 0.031000 ms

BLOCK_SIZE 4 (Matrix size of 20 x 20 elements)
copy time of A = 0.034000 ms
copy time of B = 0.029000 ms
kernel time = 0.059000 ms
time of result copy = 0.028000 ms

BLOCK_SIZE 8 (Matrix size of 40 x 40 elements)
copy time of A = 0.039000 ms
copy time of B = 0.029000 ms
kernel time = 0.060000 ms
time of result copy = 0.044000 ms

BLOCK_SIZE 16 (Matrix size of 80 x 80 elements)
copy time of A = 0.054000 ms
copy time of B = 0.046000 ms
kernel time = 0.056000 ms
time of result copy = 0.093000 ms

BLOCK_SIZE 32 (Matrix size of 160 x 160 elements)
copy time of A = 0.138000 ms
copy time of B = 0.119000 ms
kernel time = 0.111000 ms
time of result copy = 0.247000 ms
Test FAILED (GPU returns 0.00)

#####

Next...
Multiplier (of BLOCK_SIZE) should be varied to get more results from various dimension of matrixes.


Monday, January 19, 2009

Day 297...Martin Luther King, Jr Day

It is a holiday. (Find out about who is Martin Luther King, Jr here.)

At the end of Feb, there will be another holidays called Mardi Gras. This is a carnival just in LA. The well-known celebration is in New Orleans. People would have fun but I will stay home for sure.

Just want you to know how free I am in this quarter. It would be so boring if I do not have my research and internet.

By the way, I am using Safari as my default browser because my Firefox keeps crashing. I have no idea what is wrong with it. Safari is faster though.

Well. I will get back to write my paper. My first draft is crap!


Friday, January 16, 2009

Day 294...Eat for Hibernating

หนาว...

ไม่รู้ว่าเพราะพี่จ๋าไม่อยู่ ไม่มีคนทำอะไรหย่อยๆ ให้กิน หรือเพราะอากาศมันหนาว ไอ้เอ๋ถึงได้หาของกินอยู่ตลอดเวลา เหมือนหมีเตรียมจำศีล

ปกติเริ่มออกหากินตอนเช้า 8 - 8:30 กินอีกที 11 - เที่ยง มื้อเย็นก็ตอน 5 โมง แต่ช่วงนี้
10 โมง หนูหิวแย้ว
บ่ายสอง หิวอีกแย้ว
สองทุ่ม หิวงี้ดๆ

ท่าทางจะสะสมไขมันเตรียมจำศีลจริงๆ

อ้อ เมื่อกี้ไป walmart กับ เอก-มน มา งงตัวเองว่าทำไมซื้อไปซื้อมาได้แต่อาหารเช้าวะ แล้วก็ได้กางเกงอยู่บ้านมาตัวนึง (จริงๆ มันเป็นกางเกงนอนน่ะ แต่ไอ้เอ๋จะใส่อยู่บ้าน)



ลองใส่แล้ว อุ่นสบายโคตรๆ ผ้าเบา นิ่ม ขนาด XS พอดีเด๊ะ ราคา 9 เหรียญ (ประมาณสามร้อยกว่าๆ)


Wednesday, January 14, 2009

Varying the Size of Block in Grid

It just came up in my mind that the block size in the previous test has been fixed to 512, one-dimension. But what would the results be if it changed.

By fixing the number of streams to 8 and the amount of data to 16M, the results are:

512x1
memcopy: 41.35
kernel: 39.56
non-streamed: 80.28 (80.92 expected)
8 streams: 42.80 (44.73 expected)
-------------------------------

256x1
memcopy: 41.36
kernel: 0.13
non-streamed: 40.75 (41.49 expected)
8 streams: 42.80 (5.30 expected)
-------------------------------

128x1
memcopy: 41.36
kernel: 0.13
non-streamed: 40.74 (41.49 expected)
8 streams: 42.81 (5.30 expected)
-------------------------------

64x1
memcopy: 41.36
kernel: 0.12
non-streamed: 40.75 (41.48 expected)
8 streams: 42.82 (5.29 expected)
-------------------------------

and the test failed for 1024x1 block size. Confused!!


Sunday, January 11, 2009

Day 289...Term Project and Regency Commercial

เพิ่งทำ term project เสร็จไปอันนึง เป็นวิชา Data structure ให้เขียน Turing machine simulator

ตอนที่หา เจอแบบ Java กะว่าจะเอาโค๊ดมันมาแกะ แต่ไม่ไหวแฮะ ไม่เคยเขียน Java ดูแล้วมึน เลยเอาใหม่ หาที่เขียนด้วย C เอามาแล้วลอง compile ดู ดันไม่ผ่าน เวรกรรม

เขียนเองมั่ง ใช้ C ดันไม่มีปัญญาเขียนให้มัน handle files อีก

ใช้ PHP ก็ได้ฟระ ของถนัด เขียนเป็น web based ก็เลยได้มาดังนี้
http://supada.awardspace.com/csc438_tm/tm.php

เสร็จแล้วก็ลันล้า

เมื่อวานดูข่าวเมืองไทยทาง TrueLife TV เห็นมีเลือกตั้ง แต่นั่นไม่ใช่ประเด็น พอดีช่วงโฆษณา ไปเห็นโฆษณารีเจนซี่ชุดวรรณคดีไทย สวยอะ ก็เลยไปหาใน Youtube แล้วก็ได้มา ^^







ทำ Playlist ไว้ด้วย ^^

รีเจนซี่ทำมาทีไร สวยทุกที ชอบ...


Tuesday, January 06, 2009

Day 284...After the Break

เปิดเรียนวันแรกหลังปีใหม่ ไม่มีอะไรเลย Clayton มาสอนแทน Dr. Box นิดนึง แล้วก็ไปเตรียม Demo วันพุธต่อ

อ้อ ตานี่นัดประชุมเพื่อนๆ วันนี้ด้วย ฟิตจริงๆ

ตอนนี้กลัวอย่างเดียวว่าการบ้านจะเยอะ หยุดอยู่บ้านนิ่งๆ มาสองอาทิตย์เต็มๆ จนเริ่มขี้เกียจตัวเป็นหนอน

ไม่มีอะไรจะรายงาน ว่าด้วยเรื่องสภาพอากาศดีก่า

เมื่อวันเสาร์ อาทิตย์ที่ผ่านมา อากาศร้อนอะ อันนี้ร้อนจริงๆ นะ ประมาณ 70 F ก่าๆ ได้ พอมาเมื่อวาน ฝนตก เย็นยวบลงมาเหลือ 40 F หลังฝนตกแล้วมันจะหนาวเป็นปกติ

ช่วงนี้ยังมีฝนต่อไปเรื่อยๆ เอาพรมเช็ดเท้าในห้องน้ำออกไปตากไม่ได้ เริ่มเหม็นอับละ ทำไงดีหว่า - -'


Friday, January 02, 2009

simpleStreams :: Graph of the First Results

As I have told that I have been trying to get the results from running simpleStreams with varying parameters (on GeForce 8800GT). Here is the graph.



Seems like running with 8 streams could be the best solution for this graphic card, especially from 512K of data set or above. That might be because of the limitation of the card. :)


Thursday, January 01, 2009

Day 279...Wired Science

Wired Science is now my favorite show. I watch it from Hulu.com.

This is an example.
Body Builder


Deep Brain Simulation


Came across Digital Morphology Library website when I was watching this show as well.

Today's weather



Saturday, December 27, 2008

Day 274...Feigned Sushi

อยากกินซูชิมาตั้งนานละ ไม่มีโอกาสซะที

วันนี้ก็เลยสมมติว่าตัวเองได้กินซูชิ

ข้าวก็เอาข้าวสวยที่หุงไว้แล้ว (หุงทีสามกระป๋อง กินได้หลายวัน) เป็นข้าวเกาหลี (แต่ซองฮีบอกว่าไม่ใช่อะ มันไม่เห็นเหนียวเลย) ตราโบตั๋น เป็นข้าวเอเชียที่ถูกที่สุดใน Walmart ถ้าเป็นข้าวหอมมะลิไทย แพงโคตร เคยซื้อมากินละ

ส่วนปลาก็เป็นแซลม่อนอบ เคยฝากเอกกับมนซื้อแบบแช่แข็งไว้เมื่อนานมาแล้ว ตอนนี้เหลือชิ้นสุดท้าย เอามาทำซะที

แล้วก็มีสาหร่ายแห้งๆ กรอบๆ ที่เอาไว้กินเล่นๆ ซองฮีให้ไว้ ก็เลยเอามากินด้วยกัน

พอดีเมื่อวันก่อน ซองฮีทำซุปสาหร่ายไว้ให้ลองชิมนิดหน่อย ก็เลยมีซุปเอาไว้สมมติเป็นมิโซะซุปอีกต่างหาก

ส่วนโซยุ จริงๆ ที่ Walmart มีขาย แต่ครัวบ้านไอ้เอ๋ไม่มี ก็เลยเอาซ๊อสเทอริยากิ กับซีอิ้วขาวเห็ดหอมตราเด็กสมบูรณ์ใส่แทน

วาซาบิ...ไม่กินอยู่แล้ว

เท่านี้ก็ได้กินซูชิสมมติละ สมมติว่ามันไม่ได้ปั้นด้วย

พรุ่งนี้ทำไรกินอีกดีหว่า...


Thursday, December 25, 2008

OpenCL

What I am doing with simpleStreams is to vary the parameters (nstreams and dataset) and collect the results and present as a graph.

OpenCL would be very popular. I should learn it.
OpenCL - The open standard for parallel programming of heterogeneous systems

It supports both ATI Stream and CUDA.


Wednesday, December 24, 2008

Day 271...Christmas Gift from My Roommate

เพิ่งได้มาตะกี้ สดๆ ร้อนๆ เลย



ของแพงนะเนี่ย...

โลชั่นก็ใช้เป็นอยู่หรอก แต่อี body splash นี่มันใช้ทำอะไร ใช้ยังไงหว่า


Monday, December 22, 2008

Day 269...Raisin Corn Muffins

ลืมถ่ายตอนทำ เอารูปตอนทำเสร็จไปดูละกัน



อย่าไปดูอันเละนะ


ถ่ายคู่กับกล่องผลิตภัณฑ์ (ได้ค่าโฆษณามั้ยเนี่ย)
สังเกตว่าหันอันเละหลบไปแล้ว


ทำง่าย เอาอีกล่องที่เห็นเทผสมกับไข่กับนม แล้วก็คนๆ หยอดลงถาด แล้วก็เอาลูกเกดหยอด ทำเสร็จแล้วแบ่งให้ซองฮีสองชิ้น มันบอกอร่อย แต่เราว่ามันปากหวาน กินเองก็งั้นๆ อะ

อ้อ ตอนเอาออกมาจากเตา ไอ้เครื่อง detect ควันมันร้องด้วย เอิ๊กๆ ควันออกนิดเดียวเอง ทำเป็นร้อง

วันนี้อุณหภูมิประมาณ 25 องศา กลางวันไม่เกิน 30 ถือว่าร้อนนะ...ไม่ใช่ละ มันองศาฟาเรนไฮท์ตะหาก เป็นเซลเซียสก็ติดลบแล้ว เอาไอ้เอ๋ไปแช่แข็งชัดๆ หนาวอะ เดินออกไปข้างนอกทีหน้าชาเลย กลับถึงบ้าน จับดินสอไม่ได้ พิมพ์ไม่ออก มือแข็ง T_T


Sunday, December 21, 2008

Driver API vs Runtime API



I just found another sample code of matrix multiplication which was implemented using driver API. Do not know how different between driver API and runtime API. But most of sample codes were written using runtime API.

Day 268...They are now my favorite MVs

เอามาแปะเฉยๆ กลัวหาย

Last Christmas
Wham!
หนาวอะ ได้บรรยากาศเทศกาลพอดี


What I've Done
Linking Park
ตรูทำอะไรกะโลกนี้ไปฟะ


Hotel California
The Eagles
กรุณาดูหน้ามือกีตาร์ ได้อารมณ์มาก


Wind of Change
Scorpions
เขาทุบเบอร์ลินแล้ว แต่ไทยเราสร้างกำแพงใหม่


Heal the World
Michael Jackson
อย่าให้ไทยเป็นแบบนี้เล้ย


ปล. ชื่อหนูแปลว่างี้จริงๆ อะ ไม่เจื้อ

เอามาจากเว็บ คำเลิศ คับ


Friday, December 19, 2008

Day 266...My Charcoals

เป็นอันรู้กันว่า ถ้าวันไหนว่าง และมือไม่เปียก ไอ้เอ๋จะวาดรูป...

วันนี้เลยเอามาอวดมั่ง แต่เนื่องจากไม่มี scanner เลยใช้กล้องถ่ายรูปแทน ผลที่ได้ก็คือ ภาพดูมืดมน สีออกฟ้าๆ อย่างที่จะได้เห็นต่อไปนี้

บางทีก็มั่วลายไทยผสมๆ ขึ้นมา อย่างสองรูปนี้

ใช้ดินสอไม้วาด กะน้ำหนักไม่ถูก เลยออกมามั่วๆ ดำๆ ต้องเอากระดาษทิชชูแปะรองไว้ ไม่งั้นมันเลอะไปติดหน้าอื่น (ถ้าเป็นสมุดวาดภาพจริงๆ จะมีกระดาษไขแปะคั่นแต่ละหน้าไว้)

แต่ส่วนมากจะชอบ portrait มากกว่า



ภาพผู้หญิงไม่กล้าลงเงามาก กลัวพัง ภาพสุดท้ายเลยดูขาวๆ โล่งๆ ไป แต่น้องเธอแบ๊วได้ใจคนวาดมาก
ภาพผู้ชาย วาดปากยาก ถ้าลงดำเกินไปจะเหมือนทาลิปสติก กลายเป็นเกย์...
ทั้งหมดนี่ใช้ดินสอกด ไส้ Pentel 3B ดำกำลังดี กะน้ำหนักง่าย ส่วนยางลบ "เรารักในหลวง" เวลาลบที ดำปื้ดเป็นทางยาว
ลายเส้นยังโคตรยุ่ง สัดส่วนยังเพี้ยนอยู่เยอะ (ท่าจะเพี้ยนเหมือนคนวาด ^^)


จริงๆ ยังมีอีก แต่เป็นพวกหัดวาด ไม่งาม ไม่เป็นชิ้นเท่าไหร่ ไว้ถ้ามีอีก จะเอามาอวดอีก


Tuesday, December 16, 2008

Day 263...So Cold in Annoying Sprinkle

วันนี้เพิ่งสังเกตว่า...หายใจกันเป็นควัน

มันหนาวอะ ฝนตกพรำๆ ทั้งวัน ทำไมไม่ตกหนักๆ แล้วหยุดไปเลยเนี่ย -"-

วันนี้ได้ขนมมาจากซองฮีอีกละ เป็นขนมเกาหลี อย่าถามว่าอร่อยป่าว ยังไม่ได้ชิม ให้มาเยอะเชียะ เลยให้ช็อกโกแลตคืนไปมั่ง เสียดายไม่มีขนมไทย ม่ายงั้นได้มีการแลกเปลี่ยนวัฒนธรรม อิอิ

ยัังไงก็ ไว้ว่างๆ ทำกับข้าวไทยให้กินละกัน (จะกินได้ป่าวไม่รู้)

อ้อ ลืมบอก เมื่อวานได้ birth certificate มาแล้ว เย้ๆ

พรุ่งนี้จะให้ทาง ISO ไปส่งที่ SSA หวังว่าจะไม่มีปัญหาแล้วนะ แต่ช่วงนี้ติดหยุดยาว จะได้เมื่อไหร่ไม่รู้ อดตายก่อนมั้ยเนี่ย


Monday, December 15, 2008

Day 262...After the Rain

Sunshine after the rain...

That is not true!
ไม่จริงอะ

It freezes after the rain.
มันยะเยือกตะหาก

- จบข่าว -


Saturday, December 13, 2008

Day 260...Work on Saturday

This morning, Sung Hee gave me some fruits.



The berries are so testy. :)

In the afternoon, I went to the lab to help James reinstall the Tesla system. It should not have taken so long if there was a CDROM. And because the new AMD/ATI one had the same case model as the Tesla and it also had a CDROM, James crossed the wire of CDROM of AMD/ATI one with the motherboard of Tesla. That was awesome. :)


Thursday, December 11, 2008

OpenCL supported on top of CUDA

I have got this link from Dr. Box
NVIDIA pioneering OpenCL support on top of CUDA

"NVIDIA, Apple's new MacBook chipset partner, is working hard to provide seamless support for OpenCL, the cross platform API Apple developed for Snow Leopard (10.6) to create a vendor neutral, open specification for parallel programming across any compliant GPU."

"Every GPU (including GeForce, Tesla and Quadro lines) from the GeForce 8 series onwards will support OpenCL. This gives OpenCL developers an installed base of more than 100 million GPUs."

"OpenCL, which has also been adopted as the latest GPGPU strategy by AMD, is a multi-vendor standard and so the expectation is that if a vendor has an OpenCL compliant implementation, code written in OpenCL should run seamlessly across their architectures. CUDA was designed to natively support all parallel computing interfaces and will seamlessly run OpenCL and future standards as they arise."

"Both C for CUDA and OpenCL share very similar constructs for defining data parallelism, so if the developers wish, porting that code to OpenCL after its full release, will be easy."

What's OpenCL?


Tuesday, December 09, 2008

Day 256...Rainy Day

วันนี้ฝนตกแต่เช้า (จริงๆ ท่าจะตกมาแต่เมื่อคืน) ตกหนักซะด้วย ดีที่ตอนเที่ยงหยุดไปแป๊บนึง ก็เลยได้ออกไปกินข้าวที่ BCM มื้อละเหรียญ ได้เปลี่ยนบรรยากาศหน่อย กินแต่ฝีมือตัวเอง เบื่อจะแย่ละ

เรียน Data Structure กับ Dr. Choi วันนี้ก็สนุกดีนะ ทำไมคนอื่นๆ บอกว่าเรียนกับ Dr. Choi น่ากลัว หรือเพิ่งชั่วโมงที่สองหว่า ก็เลยเฉยๆ

แต่การบ้านบานเลยอะ

ปล. แอ๊ปเปิ้ลราดน้ำผึ้งไม่อาหย่อยเยย ไม่เข้ากัน สงสัยแอ๊ปเปิ้ลมันต้องกินเฉยๆ ไม่ใส่อะไรแหละ

Monday, December 08, 2008

Day 255...Hershey's Syrup on Apple

ไม่อร่อยเลย ขอบอก...

เพราะ Hershey's Syrup เวลากินเปล่าๆ แล้วเหมือนยาแก้ไอชวนป๋วยปี่แป่กอ พอกินกับแอ๊ปเปิลเลยชวนป่วย มันเหมาะไว้ใส่กับนมเท่านั้นแหละ

ไว้วันพรุ่งนี้จะลองราดน้ำผึ้งดู หาเมนูใหม่เรื่อยๆ กินแอ๊ปเปิลเปล่าๆ เบื่อจะแย่ละ


Sunday, December 07, 2008

Vary the Number of Data in simpleStreams

Still working on simpleStreams.
Try varying the amount of data set (on 8800 GT).

number of data: 4 * 1024
memcopy: 0.07
kernel: 0.05
non-streamed: 0.06 (0.12 expected)
4 streams: 0.22 (0.07 expected with compute capability 1.1 or later)
-------------------------------

number of data: 16 * 1024
memcopy: 0.09
kernel: 0.09
non-streamed: 0.11 (0.18 expected)
4 streams: 0.25 (0.11 expected with compute capability 1.1 or later)
-------------------------------

number of data: 64 * 1024
memcopy: 0.21
kernel: 0.20
non-streamed: 0.35 (0.41 expected)
4 streams: 0.37 (0.25 expected with compute capability 1.1 or later)
-------------------------------

number of data: 128 * 1024
memcopy: 0.38
kernel: 0.35
non-streamed: 0.66 (0.73 expected)
4 streams: 0.56 (0.45 expected with compute capability 1.1 or later)
-------------------------------

number of data: 256 * 1024
memcopy: 0.71
kernel: 0.66
non-streamed: 1.29 (1.37 expected)
4 streams: 0.97 (0.84 expected with compute capability 1.1 or later)
-------------------------------

number of data: 512 * 1024
memcopy: 1.37
kernel: 1.28
non-streamed: 2.55 (2.65 expected)
4 streams: 1.79 (1.62 expected with compute capability 1.1 or later)
-------------------------------

number of data: 1 * 1024 * 1024
memcopy: 2.67
kernel: 2.51
non-streamed: 5.05 (5.18 expected)
4 streams: 3.42 (3.18 expected with compute capability 1.1 or later)
-------------------------------

number of data: 4 * 1024 * 1024
memcopy: 10.50
kernel: 9.92
non-streamed: 20.13 (20.41 expected)
4 streams: 11.00 (12.54 expected with compute capability 1.1 or later)
-------------------------------

number of data: 16 * 1024 * 1024
memcopy: 41.55
kernel: 39.53
non-streamed: 80.32 (81.07 expected)
4 streams: 43.12 (49.91 expected with compute capability 1.1 or later)
-------------------------------

number of data: 32 * 1024 * 1024
memcopy: 83.06
kernel: 0.13
non-streamed: 81.53 (83.18 expected)
4 streams: 86.24 (20.89 expected with compute capability 1.1 or later)
-------------------------------

number of data: 64 * 1024 * 1024
memcopy: 165.80
kernel: 0.12
non-streamed: 163.01 (165.92 expected)
4 streams: 172.94 (41.57 expected with compute capability 1.1 or later)
-------------------------------

Interesting!
1. Why the kernel abnormally took smaller time when the data set was over 16M?
2. It could not take advantage of streams when the data set was less than 128K and more than 16M.
3. When the data set was out of the presented range, the test would fail as the results below:

number of data: 1 * 1024
memcopy: 0.05
kernel: 0.05
non-streamed: 0.04 (0.10 expected)
4 streams: 0.24 (0.06 expected with compute capability 1.1 or later)
-------------------------------
a[0] = 0; c = 50
Test FAILED

number of data: 128 * 1024 * 1024
memcopy: 0.02
kernel: 0.03
non-streamed: 0.03 (0.05 expected)
4 streams: 0.11 (0.03 expected with compute capability 1.1 or later)
-------------------------------
a[0] = -1; c = 50
Test FAILED


Saturday, December 06, 2008

Day 253...Arabian Rice

เมื่อวานไปหาข้าวเย็นกินฟรีที่บ้านเพื่อนมา เป็นคนซาอุฯ ก็เลยหุงข้าวแบบอาหรับให้กิน

ก็เอาข้าวสารไปหุงกับเครื่องเทศ เทน้ำออกแล้วเอาไปผัดกับผักนิดๆ หน่อยๆ (บอกว่าแค่ให้ดูสีสวย) ออกมาคล้ายๆ ข้าวหมกเครื่องเทศ เสียดายลืมเอากล้องไป ก็เลยไม่ได้ถ่ายรูปมา

ยังมีของหวานด้วย เป็นขนม อร่อยดี หวานๆ มันๆ เพราะเป็นพวกแป้ง ครีม น้ำตาล แล้วก็มีถั่ว มันให้กลับบ้านมาส่วนนึง เลยได้ถ่ายรูปมาให้ยลกัน (ก่อนจะกินหมด)


รูปแรก มาเป็นกล่อง หน้าตาแบบนี้


ซูมให้เห็นกันชัดๆ น่ากินมั้ย


Thursday, December 04, 2008

Day 251...Christmas Parade

วันนี้นึกว่าจะไม่มีอะไรมาแปะซะแล้ว

แต่ยังก่อน เมื่อกี้เองอะ สดๆ ร้อนๆ Christmas Parade ครับ มาแล้วครับ เลยวิ่งไปถ่ายรูปท่ามกลางอุณหภูมิ 5 C ด้วยกางเกงขาสั้น กับเสื้อหนาวหนาพอใช้ได้ แล้วก็รองเท้าแตะ ยังดีที่ใส่ถุงเท้าบางๆ อยู่ (จะเป็นหวัดมั้ยเนี่ย)

ตอนแรกได้ยินเสียงมโหรี เอ้ย ดุริยางค์ก่อน ไม่รู้ว่าอะไร ก็ไปแง้มมู่ลี่ห้องซองฮีดู เสร็จก็ได้ยินเสียงโห่ฮิ้วกันอีก เลยตัดสินใจ เอากล้องไปถ่ายดีกว่า ได้ลองกล้องใหม่ด้วยเรย อิอิ

ในขบวนพาเหรดจะมากันเป็น truck หลายๆ คัน มีคนนั่งอยู่บนนั้น แล้วก็อาจจะมีอย่างอื่น แต่ที่เยอะก็คือคน แล้วแต่ละคันก็จะโปรยปราย (ขว้างปา) candy นานาชนิดมาให้คนดู ไปดูรูปกันดีกว่า



รูปแรกงับ มัวมึก เพราะยังไม่ได้ปรับแสง


ต้นคริสมาสบน truck
ยังไม่รู้ตัว ยังไม่ได้ปรับแสง มองไม่เห็นอายัยเยย


ซานต้าหน้าลิง รึเปล่าหว่า


เริ่มรู้ตัวแล้วงับ ภาพเริ่มดูดี


แก๊งค์มอเตอร์ไซค์ ปรื่นปรื้น... คนขับตัวใหญ่กว่าแมงกะไซค์อีก


สังเกต ตุ๊กตาตัวควายนั่งประกบหัวท้าย


ธง LA Tech คับ เย้ๆ (สังเกตดีๆ มันถ่ายหญิงหรือถ่ายธง)


พาเหรดๆ ดุริยางค์ โยทวาธิต จาก LA Tech จ้า


ตัวอายัยก็ไม่ยู้


ฝรั่งอมอมยิ้มกันใหญ่เรย มีเผื่อแผ่มาถึงคนข้างล่างด้วยนะเออ


เด็กก็ช่วยโปรย สนุกกันใหญ่


เปลี่ยนจากอนุบาลหมีน้อยเป็นอนุบาลไดโนเสาร์น้อย หรือจรเข้น้อยก็ไม่รู้ ดูไม่ออก


มาเป็นรถดับเพลิงเลย


ผู้ร่วมสมรู้ร่วมคิด หนึ่งในอีกหลายๆ ราย


เอ้า เก็บกันเร้ว บางคนหอบถุงมาใส่เลยนะเนี่ย ได้กันเพียบ (หนูก็ได้ เขินจัง)


รูดอล์ฟ (เรนเดียร์จมูกแดง) อยู่ข้างบนนั่น เห็นมั้ย


สุดท้ายแล้วอะ เห็นซานต้าโบกมือไหวๆ อยู่ข้างหลังปะ


หมดแล้ว จริงๆ มันมีขากลับอีกนะ ได้ยินเสียง แต่ไม่ไหวละ หนาว หน้าชามือชาหมดแล้ว ส่วนขาอะเหรอ ไม่มีความรู้สึกไปนานละ

จริงๆ เจอเอกกับมนด้วย ไปยืนถ่ายรูปกัน

ได้ candy มาเต็มกำมือเลย :P


Wednesday, December 03, 2008

Day 250...Reused Stuff & My New Roommate

เพิ่งเรียนเสร็จ...

กลับมาก็มาเล่นกล้องใหม่ เห่อ แต่หาอะไรถ่ายไม่ได้ ก็เลยเอามาถ่ายรูปขยะที่เอามา reuse เป็นกล่องที่ได้มาจากการ build up system เมื่อวาน มันใส่ power supply มา


โฟมที่รองตัว power supply กลายเป็นชั้นวางของไปแล้ว...


อันนี้ตัวกล่องจริงๆ เป็นกระดาษแข็งอย่างดี เอามาใส่อุปกรณ์ พวก stapler กรรไกร three-hole paper punch อันหย่ายมาก

จริงๆ มีถุงผ้าอีกใบ แต่ลืมถ่าย ช่างมันเห๊อะ

###

ว่ากันต่อด้วยเรื่องรูมเมทใหม่ที่ชื่อ ซองฮี เมื่อคืนกลับมาจากเที่ยว วันนี้ก็ไปเรียนแต่เช้า เลยได้เจอกันตอนเที่ยง

เราก็ทำอะไรกินไป มันก็ซักผ้าแล้วก็จัดของไป แล้วก็มีนู่นนี่มาแจก เช่น ซุปซองสไตล์เกาหลี ข้าวโอ๊ตสไตล์เกาหลี สาหร่ายเกาหลี ของชอบทั้งนั้น กำลังอยากได้พอดี

แต่ที่เด็ดสุด แผ่นมาสก์หน้า!?

กรี๊ด ชั้นใช้เป็นที่ไหนล่ะ หน้าตายังไม่แต่งเลย แต่เอาเหอะ รักษาน้ำใจหน่อย อีกอย่าง บอกว่านี่ช่วยรักษาสิวได้ด้วย จะลองดูละกันนิ

ปล. ตอนนี้เจอ signal เน็ตเพื่อนบ้านแรงๆ ละ ขโมยใช้ก่อนแล้วกัน


New System with AMD/ATI HD 4850

As I told you yesterday. Our lab has new AMD/ATI. The model is HD 4850.

Today I have some photos of them to show... Taken by Chuka.


Messy!??


At the back.
It's a bit blur... Blem Chuka, the photographer, if you like. :D


The hero... ATI Graphic card.


Whose hands are these... You've already known



Tuesday, December 02, 2008

Day 249...New Cam!

เมื่อเช้ามีคนมาเคาะประตูบ้าน เราก็ยื่นหน้าหมวยๆ ออกไป เจอฝรั่งยื่นกล่องสีน้ำตาลให้ สงสัยจะเป็นระเบิด!

ไม่ใช่ละ มันเป็นกล่องของ Amazon เราสั่งซื้อกล้องไป :)

เรื่องของเรื่องก็คือ ซื้อด้วยความน้อยเนื้อต่ำใจ ที่เวลาไปไหนแล้วเขามีกล้องถ่ายรูป ถ่ายโน่นถ่ายนี่ อีกล้องวิดีโอของเรามันถ่ายที่มืดไม่ได้ ก็เลยซื้อดีกว่า ถือว่าเป็นของขวัญวันเกิดย้อนหลังให้ตัวเองละกัน ราคาก็ไม่แพงมาหรอก ร้อยนิดๆ

มันคือกล้อง Kodak รุ่น EasyShare M763

พอเอามาลองจับๆ เล่นๆ ดู ชอบอะ มีฟังก์ชั่นเยอะดี มี detect หน้า ตัดตาแดง ป้องกันมือสั่น มีโหมดถ่ายหนังสือ portrait ถ่ายวิว มี panorama ด้วยนะเออ ปัญญาอ่อน (ใช้ง่าย) เหมาะกับเด็กร้านถ่ายรูปแต่ถ่ายอะไรไม่เป็นเลยอย่างเรา

ว่าแต่ ช่วงนี้หนาวอะ ไม่อยากออกไปไหนเลย ออกไปปุ๊บ มือชาหน้าชา แต่ก็เพิ่งไปช่วย Himanshu (คนเนปาล) build AMD system ที่แลปมา อากาศเมื่อคืนก็ปาไป -3 C ยะเยือก... T_T

ปล. พรุ่งนี้เปิดเทอมละ ตารางเรียนบ่ายสองตลอด