-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am totally not being able to set this up #1
Comments
Potential solutionThe primary issue causing the user's setup problems is the empty To resolve these issues, we need to:
What is causing this bug?The bug is caused by an empty CodeCMakeLists.txtHere is a basic template for the cmake_minimum_required(VERSION 3.10)
# Set the project name
project(xLSTM)
# Specify the C++ standard
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED True)
# Add source files
set(SOURCE_FILES
src/main.cpp
src/other_source_file.cpp
# Add other source files here
)
# Include directories
include_directories(include)
# Add the executable
add_executable(xLSTM ${SOURCE_FILES})
# Find required packages
find_package(CUDA REQUIRED)
# Link libraries
target_link_libraries(xLSTM ${CUDA_LIBRARIES}) README.mdHere is an updated version of the relevant sections of the ## Installation
1. Clone the repository:
```shell
git clone https://github.com/smvorwerk/xlstm-cuda.git
cd xlstm-cuda
```
2. Navigate to the `python/xlstm` directory:
```shell
cd python/xlstm
```
3. Create a build directory and navigate into it:
```shell
mkdir build
cd build
```
4. Run CMake to configure the project:
```shell
cmake ..
```
**Note**: If you encounter errors related to missing compilers, ensure that you have a C++14 compiler and the CUDA toolkit installed. You can specify the compilers explicitly by setting the `CMAKE_C_COMPILER` and `CMAKE_CXX_COMPILER` variables:
```shell
cmake -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ ..
```
5. Build the project:
```shell
make
```
6. Install the Python package:
```shell
cd ../../..
cd python
python setup.py install
```
## Troubleshooting
- **CMake Errors**: If you encounter errors during the CMake configuration, ensure that you have the required version of CMake (3.8 or higher) and that your environment variables are set correctly.
- **Compiler Errors**: Ensure that you have a C++14 compatible compiler installed. You can check your compiler version with `gcc --version` or `g++ --version`.
- **CUDA Toolkit**: Ensure that the CUDA toolkit is installed and that the `nvcc` compiler is available in your PATH. You can check this with `nvcc --version`. How to replicate the bug
You will encounter errors related to missing configurations and compilers because the ConclusionThe empty Click here to create a Pull Request with the proposed solution Files used for this task: Changes on python/xlstm/CMakeLists.txtAnalysis Report for
|
+1 |
It creates xlstm cuda and then cd xLSTM does not work.
When I try to redirect it using
PS C:\Users\b-skarim\Desktop\repos_xlstm\xlstm-cuda> cd python\xlstm
PS C:\Users\b-skarim\Desktop\repos_xlstm\xlstm-cuda\python\xlstm> mkdir build it does work but then it misses out the cmake file,
when I redirect it to the cmakelist file again, then I have the following issue
CMake Warning:
Ignoring extra path from command line:
".."
CMake Error: The source directory "C:/Users/b-skarim/Desktop/repos_xlstm/xlstm-cuda/python/xlstm" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
PS C:\Users\b-skarim\Desktop\repos_xlstm\xlstm-cuda\python\xlstm\build> cmake ..
-- Building for: NMake Makefiles
CMake Error at CMakeLists.txt:2 (project):
Running
'nmake' '-?'
failed with:
no such file or directory
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
The text was updated successfully, but these errors were encountered: