acimpoeru / opencurrent

Automatically exported from code.google.com/p/opencurrent
0 stars 0 forks source link

Compile instructions on wiki page seem to have a few typos #1

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
http://code.google.com/p/opencurrent/wiki/OpenCurrent
states;

"To build OpenCurrent, you must first copy the file in the top-level
directory System.cmake.src to System.src, "

however the comments in System.cmake.src and the information further down
the page both state to copy it to System.cmake and not System.src   
Attempting to compile also seems to indicate that System.cmake is the file
the built system is looking for.

Further down the page the built instructions say

> mkdir sm13-rel  (or whatever you want to call it)
> cd sm13-rel
> cmake ../src
> cd sm13-rel
> make"

however there is no sm13-rel dir inside the sm13-rel dir so I think the
second cd command shouldn't be there.

There may also an issue with the instructions saying to set in System.cmake
"CUDA_INSTALL_PREFIX - where CUDA is installed. The defaults will normally
be correct, but you may have done something funky. "

for me on Linux (kubuntu 7.04) atleast that doesn't seem to work.    I
tried setting it to my cuda install location and got the error;

> cmake ../src/
CUDA_TOOLKIT_ROOT_DIR not found or specified
-- Could NOT find CUDA  (missing:  CUDA_TOOLKIT_ROOT_DIR
CUDA_NVCC_EXECUTABLE CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY)
-- Found NETCDF: /vol/apps/netcdf-4.0.1_64/lib/libnetcdf.so
-- Found NETCDF: /vol/apps/netcdf-4.0.1_64/lib/libnetcdf.so
CMake Error: The following variables are used in this project, but they are
set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake
files:
CUDA_CUDART_LIBRARY (ADVANCED)
    linked by target "ocuutil" in directory
/src/opencurrent/opencurrent-1.0.0/src/ocuutil
    linked by target "ocustorage" in directory
/src/opencurrent/opencurrent-1.0.0/src/ocustorage
    linked by target "ocuequation" in directory
/src/opencurrent/opencurrent-1.0.0/src/ocuequation
    linked by target "cubicrayleigh" in directory
/src/opencurrent/opencurrent-1.0.0/src/apps
    linked by target "utest" in directory
/src/opencurrent/opencurrent-1.0.0/src/tests
CUDA_TOOLKIT_INCLUDE (ADVANCED)
   used as include directory in directory
/src/opencurrent/opencurrent-1.0.0/src/ocuutil
   used as include directory in directory
/src/opencurrent/opencurrent-1.0.0/src/ocustorage
   used as include directory in directory
/src/opencurrent/opencurrent-1.0.0/src/ocuequation
   used as include directory in directory
/src/opencurrent/opencurrent-1.0.0/src/apps
   used as include directory in directory
/src/opencurrent/opencurrent-1.0.0/src/tests

-- Configuring incomplete, errors occurred!

however if I added in 
SET(CUDA_TOOLKIT_ROOT_DIR "/mycuda-installdir/")

cmake then seems to find the cuda install;

> cmake ../src/
-- Found NETCDF: /vol/apps/netcdf-4.0.1_64/lib/libnetcdf.so
-- Found NETCDF: /vol/apps/netcdf-4.0.1_64/lib/libnetcdf.so
-- Configuring done
-- Generating done
-- Build files have been written to:
/src/opencurrent/opencurrent-1.0.0/sm13-rel

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by alavali...@gmail.com on 2 Oct 2009 at 2:21

GoogleCodeExporter commented 8 years ago
Also

"CU_NETCDF4_SUPPORT_ENABLED - set to TRUE or FALSE depending on whether you have
NetCDF 4.x (TRUE) or 3.6 (FALSE) installed."

I think there is a missing O at the start there based on the actual config file.

Original comment by alavali...@gmail.com on 2 Oct 2009 at 9:41

GoogleCodeExporter commented 8 years ago
Thanks for pointing out these errors.  I will update the build docs when I get 
a chance.

Original comment by jcohen.p...@gmail.com on 3 Nov 2009 at 6:03

GoogleCodeExporter commented 8 years ago
Thanks for pointing these errors out.

Docs are updated.

Original comment by jcohen.p...@gmail.com on 3 Nov 2009 at 8:09