Pages:
Author

Topic: Ufasoft Miner - Windows/Linux, x86/x64, SSE2/OpenCL, Open Source - page 10. (Read 631117 times)

hero member
Activity: 1118
Merit: 541

Any ideas what may be causing this? Do I need a certain version of amd app sdk to compile?

Code:
7>el\comp\ext-opencl.cpp(111): error C2039: 'clEnqueueMarker' : is not a member of '`global namespace''
7>el\comp\ext-opencl.cpp(111): error C3861: 'clEnqueueMarker': identifier not found
7>el\comp\ext-opencl.cpp(116): error C2039: 'clEnqueueBarrier' : is not a member of '`global namespace''
7>el\comp\ext-opencl.cpp(116): error C3861: 'clEnqueueBarrier': identifier not found
sr. member
Activity: 378
Merit: 250
Bitcoin-miner 0.34 linux version problem:

Code:
*** glibc detected *** bitcoin-miner: free(): invalid next size (normal): 0x00007fc460000a80 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x7e626)[0x7fc4759cb626]
bitcoin-miner[0x45c6c0]
bitcoin-miner[0x411989]
bitcoin-miner[0x425d92]
bitcoin-miner[0x425e8e]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x7e9a)[0x7fc47675ee9a]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7fc475a3f4bd]
======= Memory map: ========
00400000-0047c000 r-xp 00000000 08:05 39                                 /usr/local/bin/bitcoin-miner
0067b000-0067c000 r-xp 0007b000 08:05 39                                 /usr/local/bin/bitcoin-miner
0067c000-0067d000 rwxp 0007c000 08:05 39                                 /usr/local/bin/bitcoin-miner
0067d000-00680000 rwxp 00000000 00:00 0
02645000-02687000 rwxp 00000000 00:00 0                                  [heap]
7fc458000000-7fc458021000 rwxp 00000000 00:00 0
7fc458021000-7fc45c000000 ---p 00000000 00:00 0
7fc460000000-7fc460061000 rwxp 00000000 00:00 0
7fc460061000-7fc464000000 ---p 00000000 00:00 0
7fc468000000-7fc468021000 rwxp 00000000 00:00 0
7fc468021000-7fc46c000000 ---p 00000000 00:00 0
7fc46ef88000-7fc46ef89000 ---p 00000000 00:00 0
7fc46ef89000-7fc46f789000 rwxp 00000000 00:00 0                          [stack:18017]
7fc46f789000-7fc46f790000 r-xp 00000000 08:05 142115                     /lib/x86_64-linux-gnu/libnss_dns-2.15.so
7fc46f790000-7fc46f98f000 ---p 00007000 08:05 142115                     /lib/x86_64-linux-gnu/libnss_dns-2.15.so
7fc46f98f000-7fc46f990000 r-xp 00006000 08:05 142115                     /lib/x86_64-linux-gnu/libnss_dns-2.15.so
7fc46f990000-7fc46f991000 rwxp 00007000 08:05 142115                     /lib/x86_64-linux-gnu/libnss_dns-2.15.so
7fc46f991000-7fc46f993000 r-xp 00000000 08:05 152963                     /lib/libnss_mdns4_minimal.so.2
7fc46f993000-7fc46fb92000 ---p 00002000 08:05 152963                     /lib/libnss_mdns4_minimal.so.2
7fc46fb92000-7fc46fb93000 r-xp 00001000 08:05 152963                     /lib/libnss_mdns4_minimal.so.2
7fc46fb93000-7fc46fb94000 rwxp 00002000 08:05 152963                     /lib/libnss_mdns4_minimal.so.2
7fc46fb94000-7fc46fba0000 r-xp 00000000 08:05 141793                     /lib/x86_64-linux-gnu/libnss_files-2.15.so
7fc46fba0000-7fc46fd9f000 ---p 0000c000 08:05 141793                     /lib/x86_64-linux-gnu/libnss_files-2.15.so
7fc46fd9f000-7fc46fda0000 r-xp 0000b000 08:05 141793                     /lib/x86_64-linux-gnu/libnss_files-2.15.so
7fc46fda0000-7fc46fda1000 rwxp 0000c000 08:05 141793                     /lib/x86_64-linux-gnu/libnss_files-2.15.so
7fc46fda1000-7fc46fda2000 ---p 00000000 00:00 0
7fc46fda2000-7fc4705a2000 rwxp 00000000 00:00 0                          [stack:18016]
7fc4705a2000-7fc4705a3000 ---p 00000000 00:00 0
7fc4705a3000-7fc470da3000 rwxp 00000000 00:00 0                          [stack:18015]
7fc470da3000-7fc47106f000 r-xp 00000000 08:05 2538                       /usr/lib/locale/locale-archive
7fc47106f000-7fc471072000 r-xp 00000000 08:05 102930                     /usr/lib/x86_64-linux-gnu/gconv/UTF-16.so
7fc471072000-7fc471271000 ---p 00003000 08:05 102930                     /usr/lib/x86_64-linux-gnu/gconv/UTF-16.so
7fc471271000-7fc471272000 r-xp 00002000 08:05 102930                     /usr/lib/x86_64-linux-gnu/gconv/UTF-16.so
7fc471272000-7fc471273000 rwxp 00003000 08:05 102930                     /usr/lib/x86_64-linux-gnu/gconv/UTF-16.so
7fc471273000-7fc47127a000 rwxp 00000000 00:00 0
7fc47127a000-7fc471283000 r-xp 00000000 08:05 141797                     /lib/x86_64-linux-gnu/libcrypt-2.15.so
7fc471283000-7fc471483000 ---p 00009000 08:05 141797                     /lib/x86_64-linux-gnu/libcrypt-2.15.so
7fc471483000-7fc471484000 r-xp 00009000 08:05 141797                     /lib/x86_64-linux-gnu/libcrypt-2.15.so
7fc471484000-7fc471485000 rwxp 0000a000 08:05 141797                     /lib/x86_64-linux-gnu/libcrypt-2.15.so
7fc471485000-7fc4714b3000 rwxp 00000000 00:00 0
7fc4714b3000-7fc471551000 r-xp 00000000 08:05 4100                       /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
7fc471551000-7fc471751000 ---p 0009e000 08:05 4100                       /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
7fc471751000-7fc471753000 r-xp 0009e000 08:05 4100                       /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
7fc471753000-7fc471755000 rwxp 000a0000 08:05 4100                       /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
7fc471755000-7fc471756000 rwxp 00000000 00:00 0
7fc471756000-7fc47179b000 r-xp 00000000 08:05 2231                       /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
7fc47179b000-7fc47199b000 ---p 00045000 08:05 2231                       /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
7fc47199b000-7fc47199d000 r-xp 00045000 08:05 2231                       /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
7fc47199d000-7fc47199f000 rwxp 00047000 08:05 2231                       /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
7fc47199f000-7fc4719a0000 rwxp 00000000 00:00 0
7fc4719a0000-7fc4719ae000 r-xp 00000000 08:05 2194                       /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
7fc4719ae000-7fc471bad000 ---p 0000e000 08:05 2194                       /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
7fc471bad000-7fc471bae000 r-xp 0000d000 08:05 2194                       /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
7fc471bae000-7fc471baf000 rwxp 0000e000 08:05 2194                       /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
7fc471baf000-7fc471bd7000 r-xp 00000000 08:05 2203                       /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
7fc471bd7000-7fc471dd6000 ---p 00028000 08:05 2203                       /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
7fc471dd6000-7fc471dd7000 r-xp 00027000 08:05 2203                       /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
7fc471dd7000-7fc471dd8000 rwxp 00028000 08:05 2203                       /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
7fc471dd8000-7fc471ddb000 r-xp 00000000 08:05 155197                     /lib/x86_64-linux-gnu/libkeyutils.so.1.4
7fc471ddb000-7fc471fda000 ---p 00003000 08:05 155197                     /lib/x86_64-linux-gnu/libkeyutils.so.1.4
7fc471fda000-7fc471fdb000 r-xp 00002000 08:05 155197                     /lib/x86_64-linux-gnu/libkeyutils.so.1.4
7fc471fdb000-7fc471fdc000 rwxp 00003000 08:05 155197                     /lib/x86_64-linux-gnu/libkeyutils.so.1.4
7fc471fdc000-7fc471fdf000 r-xp 00000000 08:05 143025                     /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
7fc471fdf000-7fc4721de000 ---p 00003000 08:05 143025                     /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
7fc4721de000-7fc4721df000 r-xp 00002000 08:05 143025                     /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0Aborted (core dumped)
sr. member
Activity: 301
Merit: 250
I'm having some issues with Visual Studio 2010/2008 and C++ Express and compiling, are you able to elaborate on the "hacks" you mentioned to change min os version?
http://tedwvc.wordpress.com/2012/03/11/how-to-get-visual-c-2012-vc-11-beta-statically-linked-crt-and-mfc-applications-to-run-on-windows-xp/
Quote
I followed the MSDN Link in that article and set the platform toolset to v100 however getting errors.

When compiling on x64 or Win32 in Release mode (With v100 platform toolset), I get these errors.

Quote
Error   1   error A1000: cannot open file : el/comp/x86x64.inc   C:\Users\User\ufasoft\ufasoft_coin-0.34\el\libext\bignum-x86x64.asm   8   1   bitcoin-miner (Visual Studio 2010)
Quote
Error   2   error MSB3721: The command "ml64.exe /c /nologo /Zi /Fo"C:\Users\User\ufasoft\ufasoft_coin-0.34\Release\x64_obj\bignum-x86x64.obj" /W3 /errorReport:prompt  /Ta"el\libext\bignum-x86x64.asm"" exited with code 1.   C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\BuildCustomizations\masm.targets   49   6   bitcoin-miner (Visual Studio 2010)

When compiling on Win32/Release (With v110/v100 toolset), I get these errors. (However, when I turn /SAFESEH off, it compiles fine - I just wanted to know if it was a bad idea to turn it off)

Quote
Error   1   error LNK2026: module unsafe for SAFESEH image.   C:\Users\User\ufasoft\ufasoft_coin-0.34\bignum-x86x64.obj   bitcoin-miner
Quote
Error   2   error LNK2026: module unsafe for SAFESEH image.   C:\Users\User\ufasoft\ufasoft_coin-0.34\sha256_x86x64.obj   bitcoin-miner
Quote
Error   3   error LNK2026: module unsafe for SAFESEH image.   C:\Users\User\ufasoft\ufasoft_coin-0.34\scrypt_x86x64.obj   bitcoin-miner
Quote
Error   4   error LNK2026: module unsafe for SAFESEH image.   C:\Users\User\ufasoft\ufasoft_coin-0.34\bitcoin_sha256_x86x64.obj   bitcoin-miner
Quote
Error   5   error LNK1281: Unable to generate SAFESEH image.   C:\Users\User\ufasoft\ufasoft_coin-0.34\Release\bitcoin-miner.exe   1   1   bitcoin-miner

This error is fixed now, I copied and pasted the contents of el/comp/x86x64.inc into the top of bignum-x86x64.asm and removed the include, dismissing the errors.

However, I get a new error now.

Quote
Error   1   error C1083: Cannot open include file: 'stdint.h': No such file or directory   C:\Users\User\ufasoft\ufasoft_coin-0.34\el\libext.h   522   1   bitcoin-miner (Visual Studio 2010)

and upon checking, stdint.h does not exist anywhere in the source code, should I just remove this instruction?
sr. member
Activity: 404
Merit: 251
I'm having some issues with Visual Studio 2010/2008 and C++ Express and compiling, are you able to elaborate on the "hacks" you mentioned to change min os version?
http://tedwvc.wordpress.com/2012/03/11/how-to-get-visual-c-2012-vc-11-beta-statically-linked-crt-and-mfc-applications-to-run-on-windows-xp/
sr. member
Activity: 301
Merit: 250
I'm having some issues with Visual Studio 2010/2008 and C++ Express and compiling, are you able to elaborate on the "hacks" you mentioned to change min os version?
sr. member
Activity: 301
Merit: 250
It compiles and works fine on Win7/AMD64 but when trying to run the miner compiled in both x64 and Win32 on Windows XP 32 Bit (in a vm) I get an error stating that it is not a valid win32 application.
It is known problem.  VS2012 linker sets EXE's "min OS version" to 6.0.  WinXP requires 5.0.
There are hacks exist how to  modify EXE binary to 5.0. But more reliable method is to use VS2010, and add /version:5.0 linker option.

Ok, i'll try that.

When building in Release configuration, with x86 as the Active solution platform and the platform of bitcoin-miner and coineng set to Win32, I get errors relating to "Module unsafe for SAFESEH image"

Edit:

Is there any way to monitor the output from the hidden CMD window and for example, if the user doesn't have a GPU installed then the miner defaults back to CPU?
sr. member
Activity: 404
Merit: 251
It compiles and works fine on Win7/AMD64 but when trying to run the miner compiled in both x64 and Win32 on Windows XP 32 Bit (in a vm) I get an error stating that it is not a valid win32 application.
It is known problem.  VS2012 linker sets EXE's "min OS version" to 6.0.  WinXP requires 5.0.
There are hacks exist how to  modify EXE binary to 5.0. But more reliable method is to use VS2010, and add /version:5.0 linker option.
sr. member
Activity: 301
Merit: 250
It compiles and works fine on Win7/AMD64 but when trying to run the miner compiled in both x64 and Win32 on Windows XP 32 Bit (in a vm) I get an error stating that it is not a valid win32 application.
sr. member
Activity: 301
Merit: 250
Fixed previous errors and it compiles fine now, any suggestions on how to reduce the file size a bit though?
sr. member
Activity: 404
Merit: 251

I'm using Visual Studio 11 Beta to try and compile, but I get this error.

Quote
Error   2   error C1083: Cannot open include file: 'prj_config.h': No such file or directory   C:\Users\User\ufasoft\ufasoft_coin-0.34\el\inc\inc_configs.h   12   1   bitcoin-miner

Can you specify what version of visual studio I should be using to compile it?
add directory with prj_config.h to default include dirs of the project.
VS 11 (2012) is ok.
sr. member
Activity: 301
Merit: 250
Are there any options to run it silently (completely invisible) or do we have to edit something before compiling?

Following .vbs script:

Code:
Set WshShell = WScript.CreateObject("WScript.Shell")
cmd = "coin-miner.exe"
Return = WshShell.Run(cmd, 0, True)
set WshShell = Nothing

I'm using Visual Studio 11 Beta to try and compile, but I get this error.

Quote
Error   2   error C1083: Cannot open include file: 'prj_config.h': No such file or directory   C:\Users\User\ufasoft\ufasoft_coin-0.34\el\inc\inc_configs.h   12   1   bitcoin-miner

Can you specify what version of visual studio I should be using to compile it?
sr. member
Activity: 404
Merit: 251
Are there any options to run it silently (completely invisible) or do we have to edit something before compiling?

Following .vbs script:

Code:
Set WshShell = WScript.CreateObject("WScript.Shell")
cmd = "coin-miner.exe"
Return = WshShell.Run(cmd, 0, True)
set WshShell = Nothing
sr. member
Activity: 301
Merit: 250
Are there any options to run it silently (completely invisible) or do we have to edit something before compiling?
sr. member
Activity: 404
Merit: 251
Yea i also compiled the 0.34 source, but it seems that the miner didn't work with ATI cards at all. I tried it with couple ot 5750's and 5730's and i get  eroor "This program has stopped working". With nVidia cards(GT540, GT555M, GTX560) there's no problem.
You can trace this error in the Debugger.
newbie
Activity: 41
Merit: 0
Yea i also compiled the 0.34 source, but it seems that the miner didn't work with ATI cards at all. I tried it with couple ot 5750's and 5730's and i get  eroor "This program has stopped working". With nVidia cards(GT540, GT555M, GTX560) there's no problem.
newbie
Activity: 9
Merit: 0
After trying to compile phatk.cl with Nvidia toolkit, I haven't really gotten anywhere. The only thing I can see to use is nvcc.exe however it has no idea what to do with the file.

Code:
copy phatk.cl phatk.cu
nvcc.exe -ccbin C:\VS2008\VC\bin   -o phatk.ptx -ptx phatk.cu

Thanks, managed to get it compiled and it seems to be working. Problem is when I sent it to someone to test, bitcoin-miner.exe just crashed with no error. They are using an ATI card. I have no way of debugging it either really.
sr. member
Activity: 404
Merit: 251
After trying to compile phatk.cl with Nvidia toolkit, I haven't really gotten anywhere. The only thing I can see to use is nvcc.exe however it has no idea what to do with the file.

Code:
copy phatk.cl phatk.cu
nvcc.exe -ccbin C:\VS2008\VC\bin   -o phatk.ptx -ptx phatk.cu
newbie
Activity: 9
Merit: 0
After trying to compile phatk.cl with Nvidia toolkit, I haven't really gotten anywhere. The only thing I can see to use is nvcc.exe however it has no idea what to do with the file.

Edit: found out it's suppose to be clcc (silly me). However when compiling I get tons of errors like:

ptxas application ptx input, line 1869; error   : Call has wrong number of param
eters
ptxas application ptx input, line 1906; error   : Call has wrong number of p
error: build error

Is there anywhere else I can just get this file? If someone can upload it.
newbie
Activity: 9
Merit: 0
Error 80070002:  The system cannot find the file specified.
 C:\Users\-\Desktop\ufasoft_coin-0.33\Release\phatk.ptx

phatk.ptx  is result of compiling CUDA source phatk.cl by NVidia compiler. But you can copy phatk.ptx from installation directory of binary Coin package.

I cannot see that file anywhere, the closest I can see is phatk.cl which is included with the source.
sr. member
Activity: 404
Merit: 251
Error 80070002:  The system cannot find the file specified.
 C:\Users\-\Desktop\ufasoft_coin-0.33\Release\phatk.ptx

phatk.ptx  is result of compiling CUDA source phatk.cl by NVidia compiler. But you can copy phatk.ptx from installation directory of binary Coin package.
Pages:
Jump to: