GithubHelp home page GithubHelp logo

hip-on-nv's People

Contributors

cjatin avatar jatinx avatar milolurati avatar

Watchers

 avatar

Forkers

milolurati

hip-on-nv's Issues

i get it to install on my nvidia 1060 machine but cant get it to compile a hip file. should i try to compile a cuda file instead?

blybob@pop-os:/github_repos_all/hip-on-nv/build$ hipcc
nvcc fatal : No input files specified; use option --help for more information
blybob@pop-os:
/github_repos_all/hip-on-nv/build$ cd ..
blybob@pop-os:/github_repos_all/hip-on-nv$ hip
hipcc hipercdecode hipstopgm
blybob@pop-os:
/github_repos_all/hip-on-nv$ cd test/
blybob@pop-os:/github_repos_all/hip-on-nv/test$ hipcc t.cu
/usr/bin/ld: /tmp/tmpxft_000165a6_00000000-11_t.o: in function hipModuleLoadData': tmpxft_000165a6_00000000-6_t.cudafe1.cpp:(.text+0x41e): undefined reference to cuModuleLoadData'
/usr/bin/ld: /tmp/tmpxft_000165a6_00000000-11_t.o: in function hipModuleGetFunction': tmpxft_000165a6_00000000-6_t.cudafe1.cpp:(.text+0x456): undefined reference to cuModuleGetFunction'
/usr/bin/ld: /tmp/tmpxft_000165a6_00000000-11_t.o: in function hipModuleGetGlobal': tmpxft_000165a6_00000000-6_t.cudafe1.cpp:(.text+0x493): undefined reference to cuModuleGetGlobal_v2'
/usr/bin/ld: /tmp/tmpxft_000165a6_00000000-11_t.o: in function hipModuleUnload': tmpxft_000165a6_00000000-6_t.cudafe1.cpp:(.text+0x4b8): undefined reference to cuModuleUnload'
/usr/bin/ld: /tmp/tmpxft_000165a6_00000000-11_t.o: in function hipModuleLaunchKernel': tmpxft_000165a6_00000000-6_t.cudafe1.cpp:(.text+0x514): undefined reference to cuLaunchKernel'
/usr/bin/ld: /tmp/tmpxft_000165a6_00000000-11_t.o: in function hipInit': tmpxft_000165a6_00000000-6_t.cudafe1.cpp:(.text+0x550): undefined reference to cuInit'
collect2: error: ld returned 1 exit status
blybob@pop-os:
/github_repos_all/hip-on-nv/test$ ls
t.cu
blybob@pop-os:/github_repos_all/hip-on-nv/test$ cd ..
blybob@pop-os:
/github_repos_all/hip-on-nv$ hipcc
bin/ build/ CMakeLists.txt .git/ .gitignore include/ LICENCE README.md src/ test/
blybob@pop-os:/github_repos_all/hip-on-nv$ ls
bin build CMakeLists.txt include LICENCE README.md src test
blybob@pop-os:
/github_repos_all/hip-on-nv$ ls
bin build CMakeLists.txt include LICENCE README.md src test
blybob@pop-os:/github_repos_all/hip-on-nv$ cd test/
blybob@pop-os:
/github_repos_all/hip-on-nv/test$ ls
HelloWorld.cpp t.cu
blybob@pop-os:/github_repos_all/hip-on-nv/test$ mv HelloWorld.cpp ../
blybob@pop-os:
/github_repos_all/hip-on-nv/test$ cd ..
blybob@pop-os:/github_repos_all/hip-on-nv$ ls
bin build CMakeLists.txt HelloWorld.cpp include LICENCE README.md src test
blybob@pop-os:
/github_repos_all/hip-on-nv$ hipcc HelloWorld.cpp
HelloWorld.cpp: In function ‘void helloworld(char*, char*)’:
HelloWorld.cpp:39:19: error: ‘hipThreadIdx_x’ was not declared in this scope
39 | int num = hipThreadIdx_x + hipBlockDim_x * hipBlockIdx_x;
| ^~~~~~~~~~~~~~
HelloWorld.cpp:39:36: error: ‘hipBlockDim_x’ was not declared in this scope
39 | int num = hipThreadIdx_x + hipBlockDim_x * hipBlockIdx_x;
| ^~~~~~~~~~~~~
HelloWorld.cpp:39:52: error: ‘hipBlockIdx_x’ was not declared in this scope
39 | int num = hipThreadIdx_x + hipBlockDim_x * hipBlockIdx_x;
| ^~~~~~~~~~~~~
HelloWorld.cpp: In function ‘int main(int, char**)’:
HelloWorld.cpp:64:28: error: invalid conversion from ‘const void*’ to ‘void*’ [-fpermissive]
64 | hipMemcpy(inputBuffer, input, (strlength + 1) * sizeof(char), hipMemcpyHostToDevice);
| ^~~~~
| |
| const void*
In file included from /usr/local/include/hip/hip_runtime.h:2,
from HelloWorld.cpp:23:
/usr/local/include/hip/hip_runtime.inl:162:39: note: initializing argument 2 of ‘hipError_t hipMemcpy(void*, void*, size_t, hipMemcpyKind)’
162 | hipError_t hipMemcpy(void *dst, void *src, size_t size, hipMemcpyKind direction)
| ~~~~~~^~~
HelloWorld.cpp:66:9: error: ‘hipLaunchKernelGGL’ was not declared in this scope; did you mean ‘cuLaunchKernel’?
66 | hipLaunchKernelGGL(helloworld,
| ^~~~~~~~~~~~~~~~~~
| cuLaunchKernel
blybob@pop-os:~/github_repos_all/hip-on-nv$ hipcc M

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.