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. :)