changeset 6:3e53d93dde50

cuda
author ikkun
date Thu, 15 Jun 2017 20:59:54 +0900
parents 57dacb6fec65
children 64fff82cf9c9
files osc.md sample1/CMakeLists.txt sample1/hellow.c
diffstat 3 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/osc.md	Thu Jun 15 19:37:23 2017 +0900
+++ b/osc.md	Thu Jun 15 20:59:54 2017 +0900
@@ -64,12 +64,17 @@
 - 別のディレクトリに移動し、cmake ./hoge/hello でそのディレクトリにMakeFileを作成することができる
 
 # テストを行う
-
+- MakeLists.txtに以下の様にかく
+[CmakeLists.txt](file:sample1/CmakeLists.txt)
+- CMake .でMakeFileを作成する
+- make testでテストすることができる。
 
 # ソースコード生成を試してみる
 
+
 # CUDAを使ってみる
 
+
 # Ninja
 
 LLVMの例題もやるのでLLVMの場所も書いておく
--- a/sample1/CMakeLists.txt	Thu Jun 15 19:37:23 2017 +0900
+++ b/sample1/CMakeLists.txt	Thu Jun 15 20:59:54 2017 +0900
@@ -5,6 +5,6 @@
 add_test (HelloRuns hello )
 
 add_test (HelloTest1 hello)
-set_tests_properties (HelloTest1 PROPERTIES PASS_REGULAR_EXPRESSION "Hellow World")
+set_tests_properties (HelloTest1 PROPERTIES PASS_REGULAR_EXPRESSION "Hello World")
 
 
--- a/sample1/hellow.c	Thu Jun 15 19:37:23 2017 +0900
+++ b/sample1/hellow.c	Thu Jun 15 20:59:54 2017 +0900
@@ -2,7 +2,7 @@
 
 int main()
 {
-  printf ( "Hellow World\n" );
+  printf ( "Hello World\n" );
   return 0;
 }