another kotretan..

  1. Double data type is only supported on CUDA device which has compute capability 1.3. Use device query application to check your device capability.
  2. The following error message often appears when compiling a CUDA file (*.cu) in Visual C++ Express on a XP 64-bit machine and using CUDA toolkit 64-bit.
  3. "fatal error LNK1112: module machine type 'X64' conflicts with target machine type 'x86'"

    By default, Visual Express can only compile your program as 32-bit application. Since our CUDA toolkit type is 64-bit, then nvcc will compile your CUDA file as a 64-bit application. So, the error message warns this mismatch.

    To solve this, we have to add an extra option on NVCC when compiling a CUDA file. Go to Properties of our project, then in CUDA Build Rule v3.x.x >> General, add “–machine 32” (without quotation mark) in Extra Options column.

cunami on windows

Kemarin nyobain ng-convert CUDA application dari Linux ke Windows.. Setelah ngubek2 pesan error yang muncul, akhirnya berhasil jg.. Biar ga lupa dicatet aja ah.. 😀 Aplikasi yang mau gw convert namanya “cunami”, singkatan dari CUDA for Simulation of Tsunami.. hasil dari thesis gw kmaren.. hehe.. aslinya sih dikerjain di linux.. cuma pengen nyobain di windows aja..

yang perlu gw lakukan biar bisa dicompile di visual studio :

  1. ubah header include sys/time.h ke time.h, di windows ga perlu pake “sys”
  2. rendercheck_gl.cpp and rendercheck_gl.h are needed, jadi copas-kan ke cunami folder..
  3. project property di visual studio pada bagian C/C++ > Additional include directory: $(CUDA_INC_PATH);
  4. project property di visual studio pada bagian C/C++ > Debug Information format: Program Database for Edit & Continue (/ZI) atau pada bagian Linker > Enable Incremental Linking: Yes (/INCREMENTAL)
  5. project property di visual studio pada bagian Linker > Additional dependecies : cudart.lib cutil32D.lib glew32.lib
  6. copas-kan cutil32.dll, glew32.dll and glut32.dll ke C:WindowsSystem32 agar file *.exe hasil compiling bisa running.

That’s all, and.. taraa…